Weird rotation issue

So I was just messing around in studio when I came across this issue:

Both of the parts are anchored, and here is the extremely simple code:

local part = script.Parent
local spring = part.SpringConstraint

while wait() do
	part.Orientation += Vector3.new(-1,0,0)
end


1 Like

What is the issue?. That it stops?

I guess im also confused why this is defined and never used in the script?

well I used it in another script so that I copied from but its disabled
and yes, that it stops

Try this:

local RunService = game:GetService("RunService")

local part = script.Parent

RunService["Heartbeat"]:Connect(function(deltaTime)
	
	part.CFrame = part.CFrame * CFrame.Angles(math.rad(-1) * deltaTime * 60, 0, 0)
	
end)

And are you wanting to control the spinning part using script as the post above by @a4_onym ?
Or control the spinning using the constraint?