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

Whats the error in this script?

Asked by 10 years ago

I'm making a coin turn in a circle around and around. Whats wrong in here?

local i = 0
repeat
    wait()
    script.Parent.CFrame = CFrame.new(script.Parent.CFrame.p),CFrame.Angles(script.Parent.CFrame.lookVector+Vector3.new(0,0,0.1))
until i==10

1 answer

Log in to vote
0
Answered by 10 years ago

You don't need such a complicated script. Just use BodyPosition and BodyAngularVelocity and you can make it float and spin in midair without any scripts.

Ad

Answer this question