How to move player back to spot where they fell from

  1. What do you want to achieve? Keep it simple and clear!
    I’m making a game where a player has to walk across a rope in the air. I want to create a script where I place the player back to the same spot from where they fell from in case they fall off of the rope.
  2. What is the issue? Include screenshots / videos if possible!
    Placing wall barriers is a bit tedious as the rope goes different directions. The only way I know how to approach it is by making the player touch a trigger block that is placed below the rope. However, I don’t know how I can approach the script to have the trigger block directly place the player back to their spot.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve tried watching videos on youtube and reading topics on the devforum similar to my issue, but I’m still stuck on how to approach the scripting.

I would suggest a server script that holds each player and indexes their last confirmed position that is on the rope. playerRopePosition[player] = position

You could then probably use raycasting to determine what’s under the player in a short interval, if it’s confirmed to be the rope object, update the indexed position in the script I mentioned above.

playerRopePosition[player] = newposition

Then, when they fall, you can go variety of ways. Distance from rope, touching an invisible part, etc., reference that last updated indexed position and teleport the player to said position.