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

How do I check how many people are on a certain team?

How can I? i'm making a game that checks the amount of players on a team so they don't overflow.

2 comments

0

you need to create tables of values.

0

So I can have it when a player selects a team or leaves a team the value will go up by one or decrease by one?

1 answer

✓ Accepted answer
local team = game:GetService("Teams"):WaitForChild("Blue Team")
print(#team:GetPlayers())

1 comment

0

Would this work if with conditional statements?

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