children = game.Players:GetChildren() team1 = ("Bright blue") team2 = ("Bright red") children = team1 ("Bright blue") if Player.Humanoid.Health = 0 then children = team2 ("Bright red") end
From my understanding, you want everyone to start on the blue team? And by some natural disaster or NPC, they go on the red team? If so, you'd need the Died event. If you want this to repeat, just put it in a while true do loop with a wait time of each round.
game.Players.PlayerAdded:connect(function(p) --p.TeamColor = BrickColor.new("Bright blue") --above is if you want it so when they join they go on that team. (Incase you don't have a script that sorts that out) p.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() p.TeamColor = BrickColor.new("Bright red") end) end) end)
No you failed an If and Then statement.
children = game.Players:GetChildren() team1 = ("Bright blue") team2 = ("Bright red") children = team1 ("Bright blue") if Player.Humanoid.Health == 0 then children = team2 ("Bright red") end
I didnt see anything wrong other than that.