local o=game:GetService("\074\111\105\110\116\115\083\101\114\118\105\099\101")function MakeWeld(a,x,r,f)if r==nil then r="\087\101\108\100"end local Y=Instance.new(r,o)Y.Part0=a Y.Part1=x Y.C0=a.CFrame:inverse()*a.CFrame Y.C1=x.CFrame:inverse()*a.CFrame Y.Parent=a if r=="\077\111\116\111\114"and f~=nil then Y.MaxVelocity=f end return Y end function ModelWeld(o,a)if o:IsA("\066\097\115\101\080\097\114\116")then MakeWeld(a,o,"\087\101\108\100")elseif o:IsA("\077\111\100\101\108")then for o,x in pairs(o:GetChildren())do ModelWeld(x,a)end end end function UnAnchor(o)if o:IsA("\066\097\115\101\080\097\114\116")then o.Anchored=false end for o,a in pairs(o:GetChildren())do UnAnchor(a)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 
	W.Parent=x
	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