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

How do you check if a person died?

Asked by
dota66 0
10 years ago

I tried the code below but it doesn't work.

    for i,v in pairs(game.Players:GetPlayers()) do
        if v.Character.Humanoid.Health == 0 then
            v.TeamColor = BrickColor.new("Black")
        end
    end

Answer this question