Simple timer

after the character falls, the inscription “you died” appears and my character respawns at the position where he started his journey, while the level continues, it does not restart

I take an example from this game:
YouTube Video Game (from 1:34)