Changing the Object Table
Changing the Object Table
Now we’ll replace the example object’s information with the new information.
- Rename the table from
newObject
to a name that's similar to your object's name. No spaces here! For our example, we'll be usingbeachBall
. - Where it says
MODEL = ServerStorage ["New Object"]
replaceNew Object
with the name of your second object. Make sure it matches the name in ServerStorage exactly. Include spaces and match capitalization! - Finally, replace
newObject
in the list of falling things with the name of your object table.
Great! Play the game again and you should see the new object (plus burning rocks) falling from the storm cloud.

Reminder – Check Anchoring
Remember that anchoring things stops them from falling. If your new object isn't falling, make sure that it's not anchored.
- In the Explorer, under ServerStorage, select the object.
- On the Home tab, make sure Anchor isn't highlighted grey.
Side Quest – Make the Cloud Produce Healing Objects
Using what you learned in previous lessons, try to make the cloud rain healing objects like water bubbles!
- Copy a friendly-looking object like this water bubble into ServerStorage.
- In the cloud's script, change the table name, object name, and
table.insert()
name just like you did for other falling objects. - Earlier in this project, you created a healing part that used a negative number for its "damage" amount. The same idea can work with falling objects, so change
DAMAGE
to something like -10.Now players will gain 10 health every time they pick up a water bubble!
Previous Adding Another Falling Object Next Earn the Rainmaker Badge