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

Why isn't my rotating script working?

Asked by 9 years ago
Owned = game.Workspace.owned
reset = Owned.CFrame.new(0,0.1,0)

Owned.CFrame.new(0,.01,0)
wait() 
Owned.CFrame.add(0,.01,0)
repeat 

until
Owned.CFrame.current(0,360.01,0) local next = reset

--I am a super beginner and I would like you to explain why it won't work.

I made this my self over the week end.

0
Can you explain what you're trying to do? Goulstem 8144 — 9y
0
It's in the title, make a rotating part script. Also, can't you tell by the CFrame? iiCasual 20 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

while true do script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.07,0) wait(0.01) end

Ad

Answer this question