The script below has a problem. The part gets to 90, 0, 0 then starts rapidly switching between 90, 0, 0 and 80, 0, 0. How can I fix this?
while wait() do
script.Parent.Orientation = script.Parent.Orientation + Vector3.new(10, 0, 0)
end
The script below has a problem. The part gets to 90, 0, 0 then starts rapidly switching between 90, 0, 0 and 80, 0, 0. How can I fix this?
while wait() do
script.Parent.Orientation = script.Parent.Orientation + Vector3.new(10, 0, 0)
end
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAngles(math.rad(10),0,0)
Thanks to ud2v3cf I was able to come up with this working solution:
while wait() do
script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(math.rad(10), 0, 0)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
Try CFrame
Ok
Is it colliding with any other parts? I think you should rotate it using the parts CFrame instead.
I don't know what I would do with out this site.