Hey, and thanks for reading in advance.
I’m attempting to create the illusion that this pully is contiguous and in constant motion. It’s actually comprised of three parts, one of which simply spins, but I’m trying to code the other two parts to move seamlessly in a single direction while never actually going anywhere and remaining the same length.
Problem is, I can’t think of a way to do it without creating more parts.
Code:
while Model.Parent do
local rotCF = baseCF * CFrame.Angles(math.rad(thisTheta + 10), 0, 0) * CFrame.new(0, 0, .5)
UGParts.SlideBar.CFrame = CFrame.new(
rotCF.Position, rotCF.Position + baseCF.LookVector
)
UGParts.Winch.CFrame *= CFrame.Angles(math.rad(-8), 0, 0)
UGParts.Outer.CFrame *= CFrame.Angles(math.rad(-8), 0, 0)
UGParts.Inner.CFrame *= CFrame.Angles(math.rad(-8), 0, 0)
UGParts.RopeC.CFrame *= CFrame.Angles(math.rad(-8), 0, 0)
UGParts.Valve.CFrame *= CFrame.Angles(math.rad(-4), 0, 0)
--- THE ONLY RELEVANT PART
if not ropeBool then
UGParts.RopeA.Size += Vector3.new(.4, 0, 0)
UGParts.RopeA.CFrame *= CFrame.new(.2, 0, 0)
else
UGParts.RopeA.Size -= Vector3.new(.4, 0, 0)
UGParts.RopeA.CFrame *= CFrame.new(-.2, 0, 0)
end
---
task.wait()
thisTheta += 10
ropeBool = not ropeBool
end
If anyone has any ideas or has done this before, I’d appreciate any advice. Thanks!