How do i make it so that a player respawns when hits the ground

try this guide (WARNING: HAS BLOCK CODE): Making a Falling Respawn System. (Automated)(Difficulty≈🟨)
Since @diamonds’s guide doesn’t have pics, this guide may be better.