if Round == 'RGB' then
local NewRound = RoundCarrier.RGB:Clone()
NewRound.Parent = RoundFolder
local switch = true
for i,v in pairs(game.Players:GetPlayers()) do
v.TeamColor = (switch and BrickColor.new("Bright red") or BrickColor.new("Bright blue") or BrickColor.new("Bright green"))
switch = not switch
end
There is nothing wrong with the code, except for the fact that the green team is completely neglected when the script runs.
How would I go about fixing this so that players are added to all three teams?

1 comment
Move green to the start of the script then it won't be neglected