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

How do you Regenerate Humanoids with 0 Health? [closed]

Asked by
SirPaco 66
9 years ago

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.

Marked as Duplicate by YellowoTide, XToonLinkX123, and LegitimatlyMe

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 9 years ago
if humanoid.health == 0 then
humanoid.health = humanoid.health + 5
end
0
Not sure if this is 100% correct, but you get the idea. Hyperclux 65 — 9y
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. SirPaco 66 — 9y
0
falls* SirPaco 66 — 9y
0
I do not want the Health of the Humanoid to Regenerate. I want the Humanoid itself to regenerate. SirPaco 66 — 9y
Ad
Log in to vote
0
Answered by
Kurieita 125
9 years ago

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

0
Not true. If you kill a basic Zombie it will regenerate. SirPaco 66 — 9y
0
And where are you hearing this from? Kurieita 125 — 9y
0
Thats probably from a free model that is designed to respawn itself when it dies. drew1017 330 — 9y