SavingDatas when shutdowning with "Shutdown all servers"

Hello! I have an issue.

I’ve made my data saving system on the localside and whenever I kick all players with the option on the site no datas are saved and when they join right back they lose all their progress. However when i had done this before on the server (i moved the data saving on local cuz im reworking the whole system to be client for optimization reasons) it used to work.

Should I save the player’s data on the server too? Thanks

Why are you storing data entirely on the client? Save data on the server. Putting everything on the client is a terrible idea.

1 Like

Obviously please please please use the server. Ain’t no client performance getting upgraded from such service usage.

I am wondering how you did it tho… lol

The server shud def. be the side to use, and there are ways to prevent data loss. Use :UpdateAsync() and BindToClose() to help. What I use for my games is an external module because I really don’t feel like writing or handling such complicated data structures. I let the pros do it themselves (aka ProfileService, DS2, etc.)

1 Like

Listen to BindToClose on the server and save data there: DataModel | Documentation - Roblox Creator Hub

playerremoving still fires even if the server is shutting down bindtoclose is what you use to run a function when a server is finally shutting down
hes probably using remotevents to save data which he shouldnt