Thanks for the positive feedback!
My intentions were: if player falls from a platform, player gets teleported back to the spawn point, but if player dies to an enemy or a lava (red block), player is dead and the player has to start all over again. Regardless, some people already pointed out that starting all the way from the beginning was a little harsh so I'll probably re-think about the consequences of death next time.