I would like to check if a team has 0 people inside of it. Any suggestions?
✓ ANSWER ACCEPTED
Is there a way to check the amount of people inside of a specific team?
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.

1 comment
Edited my answer.