Let's say the player uses task manager to force quit roblox, would Players.PlayerRemoving() activate?
Would Players.PlayerRemoving() activate if the user force quits roblox?
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.
yes i think
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.

1 comment
I think it will, try it you'rself!