Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Double Handed Tool Weld Issue?

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

✓ Accepted answer

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?

1 comment

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.