Opening the Script

Opening the Script

Opening the Script

Just like the trap and healing parts, a script brings the cloud to life and allows it to do more than just float there.

  1. Select the cloud in the game window. This will also highlight the cloud in the Explorer.
  2. Click the small arrow next to StormCloud to see all the objects attached to it.
  3. Scroll down just slightly to see the FallingObjectScript script. Double-click the script to open it.

Exploring the Script

Once you have the script open, find the Falling Objects section. This is where you’ll add the rock.

In the Falling Objects section, local cube is a special type of variable called a table that can hold lists of things. Everything between the curly brackets {} is part of the list.

Previous Add the Rock to ServerStorage Next Add the Rock to the Script