One cool thing that happens when you make a variable on a script is that you can change it from the Entity menu.
- Look at the Entity panel, and scroll down until you see the name of your script, ChestScript. Hint: If you can’t find the chest, press the Stop button to bring it back down from the sky.
- Click the
arrow to expand the script and see that there is a field called Amount To Move Up that matches the amountToMoveUp variable name.
- Change the number here from 10 to 1 to make the chest move more slowly up into the sky.
- Save the script and press Play to see the chest move up more slowly.