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

Base script for when the humanoid's health is zero?

Asked by 10 years ago

I am currently working on a game, and when a boss dies, a door will open. I need a script that detects the boss's health and if it's zero, the door will open. The boss's name is "Boss" by the way.

1 answer

Log in to vote
0
Answered by 10 years ago

You could do,

Boss.Humanoid.Died:connect(function()
    --Door open
end)
Ad

Answer this question