Changing size of constraint with script, lowering and raising

  1. What do you want to achieve?: I wanna make a simple lowering and raising constraint like in tower simulator:

  2. What is the issue?: I dont really know if it is possible to do it, i saw on tower simulator for the constraint thingy. Here’s a screenshot!:

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?: nope, didnt find any

any info helps!

1 Like
local function Lower(rope: RopeConstraint, studs: number)
    if not rope then return end
    if rope.ClassName ~= "RopeConstraint" then return end
    for _=1, studs, 1 do
        rope.Lenght += 1
    end
end

local function Raise(rope: RopeConstraint, studs: number)
    if not rope then return end
    if rope.ClassName ~= "RopeConstraint" then return end
    for _=1, studs, 1 do
        if rope.Lenght > 1 then
            rope.Lenght -= 1
        end
    end
end
1 Like

Didn’t work sadly. do you have any other tips?