Rotating Script
This script allows you to easily create a rotating effect for objects in your game, such as coins, power-ups, or decorative elements.

local coin = script.Parent
local function rotate ()
while true do
coin.Orientation = coin.Orientation + Vector3.new(0, 3, 0)
wait()
end
end
rotate()
How to Use:
Create a new Script in Roblox Studio.
Copy and paste the above code into the script.
Place the script as a child of the object you want to rotate.
The object will now rotate continuously around its Y-axis.
Customization:
To change the rotation speed or axis, modify the Vector3 values:
Vector3.new(X, Y, Z)
:X controls rotation around the X-axis
Y controls rotation around the Y-axis
Z controls rotation around the Z-axis
Increase the numbers for faster rotation, decrease for slower rotation.
Example Use Cases:
Rotating coins or collectibles
Creating spinning power-ups
Animating decorative elements in your game world
Was this helpful?