local X={}table.insert(X,mainPart)function Weld(G,F)weld=Instance.new("\087\101\108\100")weld.Part0=G weld.Part1=F local c=CFrame.new(G.Position)weld.C0=G.CFrame:inverse()*c weld.C1=F.CFrame:inverse()*c weld.Parent=G table.insert(X,F)end function WeldRec(X)local G=X:GetChildren()for X,G in pairs(G)do if G:IsA("\066\097\115\101\080\097\114\116")or G:IsA("\077\101\115\104\080\097\114\116")then if G.Name~="\087\101\108\100\080\097\114\116"and(G.Name~="\065"and G.Name~="\066")then Weld(mainPart,G)end end if G.Name~="\065\110\105\109\097\116\105\111\110\080\097\114\116\115"then WeldRec(G)end end end wait(1)WeldRec(P)
----- NO EDITING BELOW -----
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)
