It might be because DataStore2 does not by default save data in studio. To make it save in studio you will need to create a BoolValue in server storage called SaveInStudio and set it to true in the property’s.
Datastore2 does not work as setting it when you leave as from how im aware, it does nothing. for datastore2 you set it whenever something changes mid-session as that is one of the benefits of it since it will auto save whenever a player is leaving, you also need a boolValue with the name of “SaveInStudio” to well, save in the studio
ok , so i have found a solution, but it is a bad one.
datastore uses player.ancestortchanged to start the saving proces.
i put a wait directly after that