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?

5 comments

0

I don't quite understand, could you rephrase it?

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.

0

You can use Enum.HumanoidStateType, GetPropertyChangedSignal("Health") and Health Changed Event.

0

Are you asking for a sort of revive system? So as soon as you die, BAM you have max health again?

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.