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

Anyone know why this isn't welding properly? Check description what this code is suppose to do

Asked by 6 years ago

The torso is supposed to be welded to the torso the other way, so it is the same length as the torso.

function weld(a, b)
    local weld = Instance.new("Weld", a)
    weld.Part0 = a
    weld.Part1 = b
    weld.C0 = (a.CFrame:inverse() * b.CFrame)
    return weld
end

go here for pictures: http://prntscr.com/frod8z

1 answer

Log in to vote
0
Answered by
DanzLua 2879 Moderation Voter Community Moderator
6 years ago

On line 5 you could rotate the part by putting

* CFrame.Angles(0,math.rad(90),0)

after whats there and changing the argument to satisfy your need

Ad

Answer this question