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

Weld arm forward without breaking joints?

I made a sword using a hopperbin (i dislike tools) and i wasn't sure about how people make the arms stay still, they don't just offset the shoulder joints because the arm actually stays still. I saw a few free models where it used welds. (but i can't find them again :c) What im doing is;

local weld;


local function WeldArm()
	print("weldd")
	weld = Instance.new("Weld")
	weld.Parent = char.Torso
	weld.Part0 = char.Torso
	weld.Part1 = char["Right Arm"]
	weld.C0 = CFrame.new(1.5,0,-0.5) * CFrame.Angles(math.pi/4,0,0)
end

local function FixArm()
	weld.Part0 = nil
	weld.Part1 = nil
end

This just freezes my arm in one location after i use FixArm(). How can i successfully weld body parts into certain positions and be able to fix it later, and not just for arms? Thanks for any help.

1 comment

0

You could try recreating the original joints in the FixArm function.

1 answer

✓ Accepted answer

I'm not quite sure as to how you can weld a limb without breaking the joints, but I have method of fixing limbs and regenerating them, if that's fine with you.

(if you don't trust the module, its open source and you can read through it http://www.roblox.com/Regen-Limbs-item?id=316288363)

local RegenLimb = require(316288363)
RegenLimb("Right Arm",char)

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