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