would their data be overwritten?
2 Likes
first of all
datastore:GetAsync will probably fail when DataStore is down
you should wrap that around pcall and if it fails to get data kick the player
you should always save player data when they leave but never try to save data after player got kicked for datastore:GetAsync fail
1 Like
all the leaderstats scripts I see they don’t do that even alvinblox doesn’t do that
I wrapped datastore:GetAsync in pcall in one of my test games
i joined when datastore was down and it actually kicked me for datastore being down
works? yes but you might lose some players when datastore is down but still better than player reporting data loss