Datastore Data Loss

You should add a retry system where if the datastore fails to fetch the data it will tre-ry for x amounts then when that also fails you could do something like kick the player.

Edit: Also add a bindtoclose function for when the server shuts down with players remaining because player removing wont fire

Me and my buddies use these modules so we don’t have to worry about this like that: ProfileService or Suphi’sDS. I highly recommend the second one because it’s more performant and it can do more than profile service.

Why should you even use any of these? Well they specifically have session locking which is important. Session locking enables your datastore to be accessed by one server at a time meaning funny things like item dupes wont happen. Also, the biggest games on the platform use em (mainly profile service). There’s way more features im not mentioning you should research both :upside_down_face: