Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

You could do,

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

This discussion is preserved as it was. New answers, comments, and votes are closed.