How to verify if a server was migrated?

So, i was looking for ways to verify if a server was migrated, so i can give back the data for my players, because if a player left the game, he will lose his data on my game, but if the server migrate, i don’t want the player losing it.

I just didn’t find a way to verify if a server was migrated to send the data back to them. Can someone help me?

so u just want to save player’s data when they leave or server closes?

i want to save only if the server gets migrated to a new version

like when it’s gets shutdowned?

Screenshot_211
not shutdowned, but this option: the player gets teleported to the new version of the game

nvm thats not that you need my bad

Sadly theres no event or anything else to detect it by scripts. But you can do it by yourself

1 Like

I could check the game version (using game.PlaceVersion), save it in playerdata, and whenever the player joins the game, I could check if the game version has changed and compare it to the last time the player joined the game, and then if the time difference between the last time and the version changed was very small, I could provide the data back.

yes you can try that. Good luck with it :).

1 Like

thank you for helping! ;D, i’ll try it

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.