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

Double Handed Tool Weld Issue?

Asked by 6 years ago

Hey everyone,

I'm scripting a laser weapon and I would like the character to hold it with both arms. I'm using the R6 character.

Here's the arm welding I'm using:

larm_w = Instance.new("Weld",handle)
    larm_w.Part0 = torso
    larm_w.Part1 = larm
    larm_w.C0 = CFrame.new(-0.3,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,math.pi/4)

    rarm_w = Instance.new("Weld",handle)
    rarm_w.Part0 = torso
    rarm_w.Part1 = rarm
    rarm_w.C0 = CFrame.new(1.3,0.5,-0.6) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,math.pi/-18)

That works fine, but when I remove the weld the player arms just fall off.

This works fine unless I'm testing with networking? Any suggestions?

1 answer

Log in to vote
1
Answered by 6 years ago
Edited 6 years ago

well you practically answered yourself. arms stay in one place because of welds (or motor6D to be specific) so all u have to do is reweld the arms to be the way they were in the first place EDIT: did u delete the original weld that holds the arm?

0
Thank you, yeah I was thinking about this last night. The solution was setting the parent "Left Shoulder" and "Right Shoulder" Motor6D to nil. Then when the welds are removed setting the parent to torso again. kangerujack 20 — 6y
Ad

Answer this question