Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Would Players.PlayerRemoving() activate if the user force quits roblox?

Let's say the player uses task manager to force quit roblox, would Players.PlayerRemoving() activate?

1 comment

0

I think it will, try it you'rself!

3 answers

I don't know about task manager, but I know that PlayerRemoving fires when a player clicks 'leave' or the 'X' in the top right hand corner of their screen. I assume task manager will do the same.

It might.

Upon pressing "End Task" in task manager, it posts a WM_CLOSE message to the program window. This also happens if you press the "X" on the said application screen.

If the program does not respond/close within x time, then the user will get a prompt to kill the program. In this case, I do not think/am not sure if PlayerRemoving() would fire. I doubt it would because at that point the application doesn't close peacefully, but instead is forced.

I hope that helped!

This discussion is preserved as it was. New answers, comments, and votes are closed.