How can I count how many players are in the Players section of my game?
I have got all the children by doing game.Workspace.Players:getChildren
How do I count how many players there are?
Thanks! traigla
Use game.Players:GetPlayers()
to get the players. Then print the #players
local players = game.Players:GetPlayers() print(#players)
Players = game.Players:GetChildren() print(#Players)