Making an object rotate, when touched

Last updated: February 10, 2025

This tutorial would be perfect for animating objects and making an Obby!

  1. Open the code builder
  2. Name your Script and the Object you are working on
  3. Find "When touched by a player..." in "Events"
  4. Find the "Tween rotation" block in the "Motion" blocks section and change it to "By"

You can pick which rotation you need (X, Y or Z) and how much it can be effected by rotation by choosing the best value (Number)
  1. Play and enjoy the result!

Was this article helpful?

Thanks for your feedback!