New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
-2

How would I make a brick spin???

Asked by 4 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
4 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
4 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