Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I know the number of players in a team?

I have no idea where to start with this. I have no code... But does anyone know how I can know the number of players in a team? Thank you so much for the help!

I really do appreciate it!

1 answer

✓ Accepted answer

You can simple do:

local Team = game:GetService("Teams").Red
local num = #Team:GetPlayers()
print(num) -- Outputs the number of players on the team.

This discussion is preserved as it was. New answers, comments, and votes are closed.