I am trying to kick someone if the player number exceeds the limit but don't know what function is used to get players
COMMUNITY QUESTION
How to check the amount of players in game?
1 answer
print(#game:GetService("Players"):GetPlayers())
That get's the length of the players table which is retrieved with the GetPlayers method of the Players service
This discussion is preserved as it was. New answers, comments, and votes are closed.
