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

How do you Regenerate Humanoids with 0 Health?

How do you regenerate Humanoids with 0 Health? I have created a Humanoid by the name of "Noob" with a total of 100 Health but when he has 0 Health he does not regenerate. I would like to know how to regenerate him and how to regenerate him when a timer expires.

2 answers

✓ Accepted answer
if humanoid.health == 0 then
humanoid.health = humanoid.health + 5
end

4 comments

0

Not sure if this is 100% correct, but you get the idea.

0

I do not think that would work very well. When my Humanoid dies he fall a part. Also, I want to regenerate the Humanoid not bring it back to life in that way.

0

falls*

0

I do not want the Health of the Humanoid to Regenerate. I want the Humanoid itself to regenerate.

I am going to rewrite my question, as I misinterpreted it.

To make a humanoid respawn when it died just do

local Copy = script.Parent:Clone()

script.Parent.Humanoid.DIed:connect(function()
Copy.Parent = Workspace
end)

Simple enough

3 comments

0

Not true. If you kill a basic Zombie it will regenerate.

0

And where are you hearing this from?

0

Thats probably from a free model that is designed to respawn itself when it dies.

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