I am using game.Players.PlayerRemoving:connect(function(player)
to save their data when they leave. However, if they lose connection to the game then they will lose everything. How do I get around this?
Save all their data on the server so it is saved on the server, then you can detect if they leave/lose connection. You still have data saved on server, so then save to datastore. Ask me for more help