How would you detect if a player leaves the game?

I am trying to make a lag saving player counter so I need a system where if a player leaves it decrements the counter. I am using this guide:

1 Like

Currently, the game does not immediately detect if someone leaves. It might after a while of not moving. The player will just be not moving on every one else’s screen.

Technically, guides like the one you are using or this one are the only current known way to do so. If the player leaves of their own accord, it will take about 30 seconds or so for the game to realize the player is no longer there. If you kick the player out, it should detect it almost immediately.


For most cases, running the check only when you need to do stuff with the number should do the trick


true, when I was testing I kicked the player

maybe you could combine it with a afk kicker

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.