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.

1 comment
(line 4) because the teamcolor property isnt a string