function Weld(b,W)local X=Instance.new("\087\101\108\100")X.Part0=b X.Part1=W X.C0=b.CFrame:inverse()*CFrame.new(b.Position)X.C1=W.CFrame:inverse()*CFrame.new(b.Position)X.Parent=b end function WeldIt(b)if b then if b:IsA("\066\097\115\101\080\097\114\116")then Weld(script.Parent.Handle,b)end for b,W in pairs(b:children())do WeldIt(W)end end end script.Parent.Equipped:connect(function()WeldIt(script.Parent)end)script.Parent.Unequipped:connect(function()WeldIt(script.Parent)end)WeldIt(script.Parent)

function Weld(p0,p1)
local weld = Instance.new('Weld')
weld.Part0 = p0
weld.Part1 = p1
weld.C0 = p0.CFrame:inverse()*CFrame.new(p0.Position)
weld.C1 = p1.CFrame:inverse()*CFrame.new(p0.Position)
weld.Parent = p0
end

function WeldIt(obj) if obj then
if obj:IsA('BasePart') then Weld(script.Parent.Handle,obj) end
for i,v in pairs(obj:children()) do WeldIt(v) end
end
end

script.Parent.Equipped:connect(function() WeldIt(script.Parent) end)
script.Parent.Unequipped:connect(function() WeldIt(script.Parent) end)
WeldIt(script.Parent)
