3 Life Health System

What I want to do is have this health system where if you lose one life it resets the level and keeps the number of lives you have left but when you lose all 3 of your lives the game resets and puts you back to level 1. When I try to do this and you take damage the level resets but also the number of lives. Can someone help me with how to make this Health System?


If you have an object managing the health, you can set it to keep on level reset. You could also use the save behavior (looks like a floppy disc)