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

Welding Problem, Armor doesn't weld to limbs correctly?

Asked by
Radstar1 270 Moderation Voter
6 years ago

Background

So basically I made a script that welds armor onto a character's limbs. The dummy is wearing armor like so: https://gyazo.com/886996cbbd9048d3b73859adcc73cbb7

The script basically takes all the parts on the dummy that aren't considered the base and welds it onto the Character the same way.

However this is what happens: https://gyazo.com/fc84bfa9784b50bdc602780129bfd9a2

for i,v in pairs(Dummy:GetChildren()) do  -- The Dummy ihas 
    if Character:FindFirstChild(v.Name) then
        local Limb = Character[v.Name]
        for u,b in pairs(v:GetChildren()) do
        if b.Name ~= "Base" then
            b.Anchored = false
            local Weld = Instance.new("ManualWeld",b)   
            Weld.Part0 = Limb
            Weld.Part1 = b
            b.Anchored = false
            end
        end
    end
end

Question: Is there any reason why this isn't working? Possibly the way it was built onto it? The shoulder pad isn't coming on and the bandages aren't either.

Answer this question