function WeldPair(P,F)local t=Instance.new("\087\101\108\100",P)t.Part0=P t.Part1=F t.C1=F.CFrame:toObjectSpace(P.CFrame)end function WeldAll(P,F)if P:IsA("\066\097\115\101\080\097\114\116")then WeldPair(F,P)end for P,t in pairs(P:GetChildren())do WeldAll(t,F)end end function UnanchorAll(P)if P:IsA("\066\097\115\101\080\097\114\116")then P.Anchored=false end for P,F in pairs(P:GetChildren())do UnanchorAll(F)end end WeldAll(script.Parent,script.Parent.Part)UnanchorAll(script.Parent)script:Destroy()

function WeldPair(x, y)
	local weld = Instance.new("Weld",x) 
	weld.Part0 = x
	weld.Part1 = y
	weld.C1 = y.CFrame:toObjectSpace(x.CFrame);
end

function WeldAll(model, main) -- model can be anything
	if model:IsA("BasePart") then WeldPair(main, model) end
	for _,v in pairs(model:GetChildren()) do WeldAll(v, main) end	
end

function UnanchorAll(model) -- model can be anything
	if (model:IsA("BasePart")) then model.Anchored = false end
	for _,v in pairs(model:GetChildren()) do UnanchorAll(v) end
end

WeldAll(script.Parent, script.Parent.Part)
UnanchorAll(script.Parent)

script:Destroy() -- Done, clean script up.
