local Y=game:GetService("\074\111\105\110\116\115\083\101\114\118\105\099\101")function MakeWeld(U,C,L,p)if L==nil then L="\087\101\108\100"end local i=Instance.new(L,Y)i.Part0=U i.Part1=C i.C0=U.CFrame:inverse()*U.CFrame i.C1=C.CFrame:inverse()*U.CFrame if L=="\077\111\116\111\114"and p~=nil then i.MaxVelocity=p end return i end function ModelWeld(Y,U)if Y:IsA("\066\097\115\101\080\097\114\116")then MakeWeld(U,Y,"\087\101\108\100")elseif Y:IsA("\077\111\100\101\108")then for Y,C in pairs(Y:GetChildren())do ModelWeld(C,U)end end end function UnAnchor(Y)if Y:IsA("\066\097\115\101\080\097\114\116")then Y.Anchored=false end for Y,U in pairs(Y:GetChildren())do UnAnchor(U)end end
--

local JS = game:GetService("JointsService")

function MakeWeld(x,y,type,s) 
	if type==nil then type="Weld" end
	local W=Instance.new(type,JS) 
	W.Part0=x W.Part1=y 
	W.C0=x.CFrame:inverse()*x.CFrame 
	W.C1=y.CFrame:inverse()*x.CFrame 
	if type=="Motor" and s~=nil then W.MaxVelocity=s end 
	return W	
end

function ModelWeld(a,b) 
	if a:IsA("BasePart") then 
		MakeWeld(b,a,"Weld") 
	elseif a:IsA("Model") then 
		for i,v in pairs(a:GetChildren()) do ModelWeld(v,b) end 
	end 
end

function UnAnchor(a) 
	if a:IsA("BasePart") then a.Anchored=false end 
	for i,v in pairs(a:GetChildren()) do UnAnchor(v) end 
end
