Rotate on Y Axis
Rotate an object 90 degrees on the Y axis over 1 second when a button is clicked.
Introduction
Rotate on Y Axis turns an object around its vertical axis. It adds 90 degrees to the object's Rotation.Y, and the turn takes 1 second. This is how a button rotates an object. caption Rotate the object 90 degrees on the Y axis when a button is clicked: When button is clicked by Player -> Glide (this object, Group.Rotation.Y, Add, 90) wait 1 sec
Steps
Add the event When button is clicked by Player. Add a Glide command under it. Set the target to this object and pick the property Group.Rotation.Y. Set the mode to Add and the value to 90, with a wait of 1 sec.
When to use it
A button that rotates an object 90 degrees. Turning doors, signs, and platforms to face a new direction. Spinning an object in steps, for example 90 degrees per click.
Notes
The object turns 90 degrees over 1 second, change the 90 to turn more or less, or the wait to turn faster or slower. Rotation.Y is the vertical axis, so the object turns while staying upright.