Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to make this weld from a distance?

Asked by 8 years ago

so part0 and part1 are about 30units away from each other and that's how i want them to stay. when i weld them using this script it pulls part1 to part0. i want them to stay where they are originally, just welded together. how do i do the math on line 4?

    local weld2 = Instance.new("ManualWeld", h.b)
    weld2.Part0 = h.b
    weld2.Part1 = h.bottom
    weld2.C0 = h.b.CFrame:inverse() * h.bottom.CFrame

Answer this question