Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Team Change on Death script not working?

Asked by 6 years ago

Is there something wrong with this:

game.Players.PlayerAdded:connect(function(player) 
    player.CharacterAdded:connect(function(char)        local Humanoid = char.Humanoid
        Humanoid.Died:connect(function()
            player.TeamColor = [[White]] -- 
        end)
    end)
end)

Answer this question