Change gravity by touching a part using the code builder

Last updated: January 28, 2025

  1. Place the part to act as your button. Select it and open up the code builder.

  2. From the Events, start with a When player touches object, followed by a change plot's gravity to -- part from the Game Section. Change the number to 15 or whatever number you'd like. The lower the number, the less gravity.

  3. From the Control section, place a wait for -- seconds and change the number to however many sections you want the low gravity to last.

  4. Lastly, place another change plot's gravity to -- part, to set the gravity back to normal.

Don't change the numbers on this last part, as it is the original gravity

Was this article helpful?

Thanks for your feedback!