Players.PlayerRemoving on client?

Exactly what the title says, I tried doing it with player added but nothing happened, not even a print. Not sure what I am doing wrong but I need to detect the localplayer leaving

Client sided scripts get removed when the player is leaving, so when you detect if a player is already leaving they are already going/gone. To put it simply its like saying goodbye to someone after they left, its pointless

2 Likes

There is no real reason to do Players.PlayerRemoving on the client side, and it wont even work.

Try to do whatever you need it to do from a serverscript instead

1 Like

Could you explain what exactly you’re trying to do?