So I was able to figure out a way to respawn without losing your progress. The only problem is that it respawns you to only one place and I am trying to experiment on how to get back to the pint of the game you were at.
Here’s the current code:
if hero health value => 1
hero health becomes inactive
hero health value increases with 99999
hero teleports to door “door0171” at “Respawn”
hero health becomes active