Is there any way to save a player's stats to DataStore when the player has either been kicked etc? I have tried many things but nothing has worked.
COMMUNITY QUESTION
How to save a player's stats when they get kicked etc?
1 answer
Instead of PlayerRemoving, you can try https://developer.roblox.com/en-us/api-reference/event/Instance/ChildRemoved on game.Players.
3 comments
0
I haven't tried it but.
0
same thing as playerremoving but trashier lmao
0
I need something for if the servers shutdown or something.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Like if I shutdown the game for an update.
player.PlayerRemoving:Connect(function()