I'm trying to figure out a bunch of stuff with RemoteEvents and data saving, and I'm trying to figure out exactly how to approach firing an event from the client when the player leaves. Specifically, will the scripts be deleted before they can fire? Also, is there a special event I should use, or should I just stick with PlayerRemoving? Any help would be greatly appreciated!
COMMUNITY QUESTION
How can I detect if the player is leaving from the client? [Solved]
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Stick with PlayerRemoving. If the client leaves there's nothing that can be done from the client, as its gone. the server is still able to yield the removing of the data so it can still do stuff with the data from the client (For max 5sec or something)
Here you go http://wiki.roblox.com/index.php?title=API:Class/Players/PlayerRemoving