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

How to make so the Player heals when he dies?

Asked by 6 years ago

Basically I am trying to make a script that when you press Z for example. Nothing happens but as soon as you die, you heal instantly. Is there a way to do this without having to respawn the character?

0
I don't quite understand, could you rephrase it? Pojoto 329 — 6y
0
Humanoids enter the 'dead' state when the Health reaches 0 or the head is removed. You could try making your own Health system that you manage so that it doesn't interfere with a Humanoid's real health. xPolarium 1388 — 6y
0
You can use Enum.HumanoidStateType, GetPropertyChangedSignal("Health") and Health Changed Event. User#23857 0 — 6y
0
Are you asking for a sort of revive system? So as soon as you die, BAM you have max health again? Zenith_Lord 93 — 6y
0
If you don't want to die just turn off Reset, And I haven't seen a script like being healed instantly when died. cherrythetree 130 — 6y

Answer this question