How to Make a Block Spin in Roblox Studio
I did this in one of my games! Add a `Script` to the block and try this code snippet:
```lua
while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(0, math.rad(3), 0)
wait(0.1)
end
``` Works like a charm!
Play Games.Earn points.Get gift cards!

Playback Rewards
(13.7k)
500k players and counting...
More Answers
Just use CFrame.Angles in a loop. It's really that simple!
Easy peasy! Just insert a `Script` in the block and use a loop with CFrame rotation. Try this:
```lua
while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(0, math.rad(1), 0)
wait(0.01)
end
```
Why not try using a Tween? It gives smoother results, but the loop method works fine too.
Create a Script object inside your block and then use a loop with CFrame. Check out the simple code:
```lua
while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(0, math.rad(2), 0)
wait(0.05)
end
```
馃憖 If you like Roblox...
The brands referenced on this page are not sponsors of the rewards or otherwise affiliated with this company. The logos and other identifying marks attached are trademarks of and owned by each represented company and/or its affiliates. Please visit each company's website for additional terms and conditions.
People also want to know
Add an Answer