I currently am working on a game that uses datastores, I’ve been using them for a while now and haven’t decided to learn DataStore2. Until now, when people have been reporting dataloss. The problem is I don’t want to anyone to lose their data from before after I switch.
If you can send me along the lines of what I need to do, that would help me a lot, thanks.
(I would provide a script but I have no idea where to start it)
You could perform a check on the old datastore and the new data store, so if a player joins and has data in the old datastore but not in Datastore2, then load from the old datastore, if they have data in Datastore2 and the datastore, load from Datastore2.
Is there a function that would allow me to check if a user has data in DataStore2? I know how to do it using datastores, but not so much using DataStore2.
Edit: Got it, thanks for the help. I’m using the default value function to set the default value to whatever the player’s old datastore is.