Is this a good way to handle data?

What do you want to achieve?
I want to know if this is a good way of saving data and if there’s something I can do to improve/change my methods.

b4759bdeae12a4551643e15eeaeb86c4

In ServerStorage I have this folder. When you join the game, a copy of the folder is made and your data overwrites the default data in the original DataPlaceHolder. If it’s your first time playing, you’ll just get the default data folder.

ecf0d27d4f1b3ea1b705f85e82e670e6

2f4ae3c9663262c9ab46ee63abfa219d

e8173f4676a8fbd7badd1db097c33ccb

I have pcalls around every single SetAsync and GetAsync call and the function will repeat itself if it errors. In the second image, there’s a parameter called “Important” which is for if a player is leaving the game/purchasing a developer product.

Is there anything I’m missing for saving and grabbing data? Should I not use folders? Let me know.

If just one call fails, it seems odd to retry the entire function. Just retrying the call that failed would make more sense, in my opinion, and it would save budget on datastore calls.

2 Likes

Alright thanks, I’ll change that.