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?
--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
local X --\ local Y ---> Don't edit these.
-- 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
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()
Use BodyForce, or have a script change the part's X cframe position.