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

Is there a way to check the amount of people inside of a specific team?

I would like to check if a team has 0 people inside of it. Any suggestions?

1 comment

0

Edited my answer.

1 answer

✓ Accepted answer
local Team = game.Teams.TEAMNAMEGOESHERE
local playerinteam = Team:GetPlayers()
if #playersinteam == 0 then

print("This team has 0 players.")

end

6 comments

0

Sorry, it didn't work. Here was my error message: attempt to get length of a Instance value

0

Hm.

0

The error still appears, sorry.

0

whats the error

0

The same error appears; "Attempt to get length of an instance"

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