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


	