I already tried this code:
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) character:WaitForChild("Humanoid").Died:Connect(function() if player.TeamColor == ("New Yeller") then player.TeamColor = BrickColor.new("Brown") end end end
but it isn't working for some reason.
There Is An Error On Line 4. It Should Be:
if player.TeamColor == BrickColor.new("New Yeller") then