Make object fall when it's touched

Last updated: January 28, 2025

Let's create a script that makes any object fall when it's clicked!

  1. Choose your favourite object!

  1. Select the object and open a code builder by clicking < > on a menu to the right.

  1. In the code builder Name your object and Script
For the script name, explain what you are planning to do, for example (Object fall, when touched)
  1. In the Events category (Yellow) on a left side, select "when player clicks object"

  1. Connect another Code Block below. In the Motion category (Blue) select "Set anchored" and connect them, like so:

  1. Make sure to select "False" on the drop-down menu.

  1. Save your code!

  1. Click save my game at the top and then Play! (When you and your friends click on the object during the game, it will fall!)

Was this article helpful?

Thanks for your feedback!