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

How would I make a brick spin???

Asked by 9 years ago

I cant get it if i want to make it spin on x/Y/Z If you make it Can you make it so I can edit the x y or z angle its spinning on

2 answers

Log in to vote
0
Answered by
jqrx 0
9 years ago

Don't use 22ron's. Your game will crash. Here is the fixed version:

local part = script.Parent
while wait() do
    part.CFrame = part.CFrame * CFrame.Angles(0,math.pi/10,0);
end
Ad
Log in to vote
-1
Answered by
22ron 0
9 years ago
local Block = script.Parent --Defines where the part is


while true do
       Block.CFrame = Block.CFrame * CFrame.Angles(0, 0, 0)-- put the X,Y,Z values in here (X, Y, Z)
end

Answer this question