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

trouble making cylinder spin with parts atop?

Asked by 4 years ago

hello, fellow robloxians!

I am making a Roblox arcade and need help making a cylinder spin around with parts spinning around on it. I have tried this for a test, but it doesn't seem to work and gets stuck.

spos = script.Parent.Position
while true do
    wait(0.05)
    local  e = 0

    script.Parent.CFrame = CFrame.Angles(0,e + 0.1,0)
    script.Parent.Position = spos
    script.Parent.Orientation  = Vector3.new( script.Parent.Orientation.X, script.Parent.Orientation.Y, 90)
    e = e + 0.1
end

can somebody help and make this code work again?

from codingMASTER398.

Answer this question