How to Code Moving Ramp Obby Level

Last updated: February 10, 2025

  1. Start with a rectangle on the ground and open up the code builder.

  2. Place an At Start from Events, followed by a change velocity block from Motion. Change the Input in the X to 10.

If this doesn't work, you are facing another direction and should change the Z input. Remember, X = front and back, Z = left and right.

  1. Place 2 rectangles together to create an arrow and place it flat on the block to show what direction the ramp pushes you in. Don't forget to colour it!

  2. Group them, and rotate it so it's at an angle.

  3. Place a small rectangle at the top of the ramp to make a kill brick. Make it neon with the Material Tool to make it clear. Select it and open up the code builder.

  4. Start with a when touched by a player every -- seconds block from Events, followed by a Respawn player block from Player. Change the seconds to "1". That's all for the kill brick!

  5. Duplicate the ramp and kill brick in a row, leaving a gap.

  6. Duplicate one of the ramps and rotate it to face the other way.

  7. Open up the code builder and click the little Link icon to unlink it from the others while keeping the code.

  8. Change the Input to Negative by putting "-10" so it moves in the other direction.

  9. Duplicate it in a row, placing them in the gaps so they are alternating for you to jump on, and you're done!

Was this article helpful?

Thanks for your feedback!