Respawn people at a certain position

So I’ve been working on a modern version of an obby. I’d like to add, once you die, you respawn at the stage you left. I added a plateau under the stages that kills the player if it touches it. Would I be able to put something in that code to respawn them at their stage?

Simpliest way is to create a SpawnLocation instance and set the Player.RespawnLocation to that point

1 Like

Could you elaborate? It doesn’t make sense for me…

So.
Theres 2 ways you can do this.

Simple Method

  1. Using different teams and making spawn points for each level.
    How to Make TEAMS in Roblox Studio with Team Spawn Points - YouTube
    Roblox Studio How to Create and Customize a Spawn Point (2021) - YouTube

Advance Method - I highly suggest you look into the simple method first.

  1. Make a system that saves the last part you touches, when a player respawns as soon as their character is detected it teleports you to that last part you touched (that is registered as a spawn point)

2i. This can be done by setting an attirbute to the player when they trigger the .Touched event, make sure people dont back track by making each attribute an additional one to the last.

2ii. You can use maths to make sure they havent back tracked and with the attribute we can then see which number they are at, find the spawn for that number and bring the character model to that spot.

2iii. You can then use the datastorage service to save that number when they leave for if they want to come back to the obby and keep their original spot. (You can also save the team they on using datastorage service)

Useful other links: