Find and restore player's lost data

Heyyy! Recently, I’ve been trying to figure out how to find and restore player’s lost data. If you know a method, it’s appreciated!

its leader stats stuff so it can

https://developer.roblox.com/en-us/api-reference/function/DataStore/ListVersionsAsync
Use this function to get previous versions. However, a much better solution is to stop error loss in the first place. I would post the datastore code in #help-and-feedback:code-review to get help finding errors and mistakes.

1 Like

If the server crashes I’m not too sure it will update datastores.

That is what autosaving is for. Every 60 seconds, just save the players’ data. Worst case scenario, some players are mildly annoyed by losing a bit of data.

1 Like

Alright, thank you! I’ll use this method