For some reason my part rotates like crazy, rather than rotating calmly in the one direction it should.
script.Parent.ClickDetector.MouseClick:Connect(function(plr)
if script.Parent.Value.Value == false then
for i = 1,45 do
script.Parent.CFrame = CFrame.new(script.Parent.Position) * CFrame.Angles(math.rad(script.Parent.Orientation.X + 1),script.Parent.Orientation.Y,script.Parent.Orientation.Z)
wait()
end
end
end)

1 comment
I meant it's rotating on X, Y and Z