Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make a rotating brick?

Asked by 9 years ago

How do you make a rotating brick? I haven't really understood it yet. Can someone help me please?

Thanks!

Curly.

1 answer

Log in to vote
0
Answered by 9 years ago

You can place in the brick a BodyAngularVelocity and change its maxTorque to something like 4000, 39999999735263250042846025505031847936, 4000 and change it's angular velocity to 0,2,0 and it's P too 1250, or you can just add a script to the brick and place the codes down below.

brick = script.Parent
while true do -- Loops script
wait(0.001)
brick.CFrame = brick.CFrame * CFrame.fromEulerAnglesXYZ(0.01,0,0) -- Change 0.01 to whatever speed you want it to go
end

2
You forgot to put a conditional with 'until' DigitalVeer 1473 — 9y
0
Oh well alan3401 28 — 9y
0
I want to make mine spin in random directions... a cube you walk on and its turns around in everyd irection and you can't fall down kingofpronoobs 0 — 5y
Ad

Answer this question