Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

Datastore saving when player loses connection?

Asked by 9 years ago

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?

1 answer

Log in to vote
0
Answered by 9 years ago

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

0
Why did this get a thumbs down? FutureWebsiteOwner 270 — 9y
Ad

Answer this question