I’ll leave you this post where I explain several ways to implement a respawn system. In your case, the third example will be the most useful, as it shows how to create a checkpoint system that updates the player’s respawn point as they progress through the obby.
If you have any questions after going through it or need help adapting it to your project, feel free to ask.