menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
How to tell how many players in a team?
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
How to tell how many players in a team?
zappata1
Join Date: 2012-03-26
Post Count: 1073
#182460091
Tuesday, January 26, 2016 9:52 PM GMT
Example: Team is survivors, how would you be able to find how many players are in that team?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Crimsonal
Join Date: 2011-04-23
Post Count: 1795
#182460296
Tuesday, January 26, 2016 9:55 PM GMT
function getTeamNum(teamcolor) Number = 0 for i,v in pairs(game.Players:GetPlayers()) do if v.TeamColor == BrickColor.new(teamcolor) then Number = Number+1 end end return Number end print(getTeamNum("Bright red"))
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
zappata1
Join Date: 2012-03-26
Post Count: 1073
#182460355
Tuesday, January 26, 2016 9:56 PM GMT
THANKS BRUH1111!!
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right