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?
COMMUNITY QUESTION
How to make so the Player heals when he dies?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
I don't quite understand, could you rephrase it?
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.
You can use Enum.HumanoidStateType, GetPropertyChangedSignal("Health") and Health Changed Event.
Are you asking for a sort of revive system? So as soon as you die, BAM you have max health again?
If you don't want to die just turn off Reset, And I haven't seen a script like being healed instantly when died.