Tryina make a script that when a player on red team dies, the blue team gets a point.
game.Players.PlayerAdded:connect(function(p) if p.TeamColor == BrickColor.new("Really red") and p.Humanoid.Died() then script.Parent.Blueteam.Text = script.Parent.Blueteam.Text + 1 end
but this doesnt work, i dont know how to do this.
Something like that
game:GetService('Players').PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() if player.TeamColor == BrickColor.new("Really red") then --do something end end) end) end)