We use cookies on this site to enhance your user experience

Adding Another Falling Object

Adding Another Falling Object

Your storm cloud now rains objects on players, but wouldn’t it be fun to add more things that can fall? No problem, you can do that!

Add the Object to ServerStorage

Just like the burning rock, your second object must be copied into ServerStorage.

  1. Select an object from in front of the warehouse.
  2. Make sure the object isn't anchored.
  3. In the 3D view, right-click the object and copy it.
  4. In the Explorer window, right-click ServerStorage and click Paste Into.

Copy the Object Table

Each object will need its own table.

  1. Copy the code below.
    local newObject =
        MODEL = ServerStorage["New Object"],
        DAMAGE = 10,
        NUMBER_PER_MINUTE = 20,
    table.insert(fallingStuffTable, newObject)
  2. View the FallingObjectScript script.
  3. Click on line 22 to put your cursor below the first table but above the green dashed line.
  4. Right-click and select Paste to insert the table into the script. Your script should now look like this:

Previous Making it Rain Harder Next Changing the Object Table