local B={}table.insert(B,mainPart)function Weld(r,z)weld=Instance.new("\087\101\108\100")weld.Part0=r weld.Part1=z local n=CFrame.new(r.Position)weld.C0=r.CFrame:inverse()*n weld.C1=z.CFrame:inverse()*n weld.Parent=r table.insert(B,z)end function WeldRec(B)local r=B:GetChildren()for B,r in pairs(r)do if r:IsA("\066\097\115\101\080\097\114\116")or r:IsA("\077\101\115\104\080\097\114\116")then if r.Name~="\087\101\108\100\080\097\114\116"and(r.Name~="\065"and r.Name~="\066")then Weld(mainPart,r)end end if r.Name~="\065\110\105\109\097\116\105\111\110\080\097\114\116\115"then WeldRec(r)end end end wait(1)WeldRec(P)

local weldedParts = {}
table.insert(weldedParts,mainPart)

function Weld(x, y)
	weld = Instance.new("Weld") 
	weld.Part0 = x
	weld.Part1 = y
	local CJ = CFrame.new(x.Position) 
	weld.C0 = x.CFrame:inverse() * CJ  
	weld.C1 = y.CFrame:inverse() * CJ  
	weld.Parent = x	
	table.insert(weldedParts,y)
end

function WeldRec(instance)
	local childs = instance:GetChildren()
	for _,v in pairs(childs) do
		if  v:IsA("BasePart") or v:IsA("MeshPart") then
			if v.Name ~= "WeldPart" and v.Name ~= "A" and v.Name ~= "B" then
				Weld(mainPart, v)
			end
		end
		if v.Name ~= "AnimationParts" then
			WeldRec(v)
		end
	end	
end
wait(1)

WeldRec(P)