I am trying to kick someone if the player number exceeds the limit but don't know what function is used to get players
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