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

How to make a brick Spin?

Asked by 10 years ago

So I was wondering how would I make a brick spin in place? Like I have a blue block floating in the Air, how would I go about making it spin around?

2 answers

Log in to vote
0
Answered by 10 years ago

--Newly made script for you, Res --Spinning Block/Part by badAQWmaster (Put in anything to make it spin) Green texts show you what they mean or indicate a warning

--Put this script in a block, part or a spawn or it won't work

local X --\ local Y ---> Don't edit these.

local Z --/

-- Rotations per frame:

X= -- Degree of rotation per frame on X Axis:

0.5


Y= -- Degree of rotation per frame on Y Axis:

0.5


Z= -- Degree of rotation per frame on Z Axis:

0.5

-- NOTE: A frame is usually around 0.03 seconds.

function start() while (true) do script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(X),math.rad(Y),math.rad(Z)) wait() -- When no number is provided, it will wait for one frame. | | | end -- | | [Z=Roll] end -- | [Y=Rotation] -- [X=Pitch] start()

0
Thanks a ton! CrispyBrix 113 — 10y
Ad
Log in to vote
0
Answered by
Resnex 60
10 years ago

Use BodyForce, or have a script change the part's X cframe position.

Answer this question