I have some code to find out the max number of players. It says An error occurredon line 4. Do I have to specify the max number of players or can the server do that?
while true do
wait()
numplayers = game.Players.NumPlayers
maxplayers = game.Players.MaxPlayers
script.Parent.Text = "Players in game: " ..numplayers.. " of " ..maxplayers
end

1 comment
That's what I ended up doing.