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
RMofSBI
(RMofSBI)
#3
What is the issue?. That it stops?
RMofSBI
(RMofSBI)
#4
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
A4ONYM
(a4_onym)
#6
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)
RMofSBI
(RMofSBI)
#7
And are you wanting to control the spinning part using script as the post above by @A4ONYM ?
Or control the spinning using the constraint?