for _,v in pairs(game.Players:GetPlayers()) do if v.TeamColor == BrickColor.new("Bright blue") then blueteam.Value = blueteam.Value + 1 elseif v.TeamColor == BrickColor.new("Bright red") then redteam.Value = redteam.Value + 1 end end
I am trying to make it so it checks the amount of players on a team, so it would say print 5, being 5 people are on red team.
You can check all the players and find their team color, essentially letting you see how many players are on a team.
teamtable1 = {} for i,v in pairs(game.Players:GetChildren()) do if v.TeamColor == BrickColor.new("Color Here") then -- Checks every player for their Team Color table.insert(teamtable1,v) end end