How to make a SPINNING PART (3 ways) - Roblox Studio

Опубликовано: 09 Июль 2026
на канале: Nikola
9,341
107

********************************************************************

Hi gyes ! Today I am going to show you how to make spinning parts at 3 ways!

********************************************************************

First part script :

********************************************************************

sphere = script.Parent --This means that you have to have the script in the sphere part
a = 0
repeat
sphere.Rotation = Vector3.new( 0, 0, 0) --The second value of vector3 is a,
wait(.01) -- we wait .01 seconds,
a = a+3 --a's value increases
until pigs == 1 --Just make sure you never have pigs' value to 1, and it'll spin forever

********************************************************************

Second part script:

********************************************************************

while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(.1,.1,.1) -- Spinning Part
wait()
end

********************************************************************

3rd part script:

********************************************************************

while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(.1,.0,.1) -- Spinning Part
wait()
end

********************************************************************