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

Weld arm forward without breaking joints?

Asked by
Turgon 80
9 years ago

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.

0
You could try recreating the original joints in the FixArm function. ZeroBits 142 — 9y

1 answer

Log in to vote
1
Answered by 9 years ago

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)
Ad

Answer this question