i am a Near-Amature scripter so i dont anderstand alot of things. SO f you could help me fix this it would help alot! THANks! CODE:
d = game:GetService("Teams") if d.Players == 0 then -- Meaning if there is no players in the team
****Again, I am a amature, so i dont understand it, Sorry if this is a request :/
It's always best to look stuff up before you use it in your code. As it turns out, the property you are trying to use simply does not exist. To actually get the number of players on a team, it's much more complicated.
We must loop through all the Players and check their TeamColor property, then use a variable to keep track of how many players had that same TeamColor.
local blueNum = 0 for index, player in pairs(game.Players:GetPlayers()) do if player.TeamColor == BrickColor.new("Bright blue") then blueNum = blueNum + 1 end end print(blueNum)