I have a part m1.Top that orbits around part orange. This works fine, the only problem is that instead of maintaining the rotation it had before the orbit starts, it resets the rotation of m1.Top.
How can I fix this problem?
Code:
for i = 1,180 do
wait()
m1.Top.CFrame = CFrame.new(orange.Position) * CFrame.Angles(0, math.rad(i*2), 0) * CFrame.new(0, 0, (orange.Position - m1.Top.Position).magnitude)
end

3 comments
What would you rather it do? Should it turn at all during the motion? Should it turn but start with the original rotation?
It's a Quarter-Circle, and I'd like the vertex of the two straight sides to face 'orange', but in it's current form, it should be maintaining it's rotation and just orbiting the 'orange' part.
And for it to face the 'orange' part, I could really just have a separate piece rotating it proportionally to where it is in it's orbit.