# Endless rope visual effect?

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
---
thisTheta += 10
ropeBool = not ropeBool
end

If anyone has any ideas or has done this before, I’d appreciate any advice. Thanks!

Instead of doing all of that, I would just shift the offset of the rope texture, making it seem like it’s moving.

1 Like

I…can you do that with material textures, though?

Well, not that I know of but to avoid all of that, I would just add the fabric texture and set the offset.

If this is not a good texture for fabric, you can look up another texture.