local k=game:GetService("\074\111\105\110\116\115\083\101\114\118\105\099\101")local J=workspace:PGSIsEnabled()function MakeWeld(J,g,b,I)if b==nil then b="\087\101\108\100"end local D=Instance.new(b,k)D.Part0=J D.Part1=g D.C0=J.CFrame:inverse()*J.CFrame D.C1=g.CFrame:inverse()*J.CFrame if b=="\077\111\116\111\114"and I~=nil then D.MaxVelocity=I end return D end function ModelWeld(k,J)if k:IsA("\066\097\115\101\080\097\114\116")then MakeWeld(J,k,"\087\101\108\100")elseif k:IsA("\077\111\100\101\108")then for k,g in pairs(k:GetChildren())do ModelWeld(g,J)end end end function UnAnchor(k)if k:IsA("\066\097\115\101\080\097\114\116")then k.Anchored=false k.Archivable=false k.Locked=false end for k,J in pairs(k:GetChildren())do UnAnchor(J)end end


	local JS = game:GetService("JointsService")
	local PGS_ON = workspace:PGSIsEnabled()
	
	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 a.Archivable = false a.Locked=false end for i,v in pairs(a:GetChildren()) do UnAnchor(v) end 
end


	