local part = script.Parent.PrimaryPart
local model = script.Parent
-- The code you already had to rotate it
for i = 0, 1, 0.001 do
part.CFrame = part.CFrame:Lerp(part.CFrame * CFrame.Angles(0,0,math.rad(1)), i)
wait(0.01)
print(i)
end
for i = 0, 1, 0.01 do
part.CFrame = part.CFrame:Lerp(part.CFrame * CFrame.Angles(0,0,math.rad(1)), 1)
wait(0.01)
print(i)
end
I couldn’t really tell what was going on because of the framerate, but listening to what you’re saying I would make sure every other part besides the anchored part that’s moving is unanchored.
Also, instead of manually setting the cframe a little bit each time, just use tweenservice.