local R=game:GetService("\074\111\105\110\116\115\083\101\114\118\105\099\101")local U=workspace:PGSIsEnabled()function MakeWeld(R,U,m,A)if m==nil then m="\087\101\108\100"end local H=Instance.new(m,R)H.Part0=R H.Part1=U H.C0=R.CFrame:inverse()*R.CFrame H.C1=U.CFrame:inverse()*R.CFrame if m=="\077\111\116\111\114"and A~=nil then H.MaxVelocity=A end return H end function ModelWeld(R,U)if R:IsA("\066\097\115\101\080\097\114\116")and R.Parent.Name~="\082\111\116\076\105\103\104\116"then MakeWeld(U,R,"\087\101\108\100")for R,m in pairs(R:GetChildren())do if m~=nil and m:IsA("\066\097\115\101\080\097\114\116")then ModelWeld(m,U)end end elseif R:IsA("\077\111\100\101\108")then for R,m in pairs(R:GetChildren())do ModelWeld(m,U)end end end function UnAnchor(R)if R:IsA("\066\097\115\101\080\097\114\116")then R.Anchored=false end for R,U in pairs(R:GetChildren())do UnAnchor(U)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,x) 
		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") and 
		a.Parent.Name ~= ("RotLight") then 
			MakeWeld(b,a,"Weld")
			for i,v in pairs(a:GetChildren()) do 
				if v ~= nil and v:IsA("BasePart") then
					ModelWeld(v,b) 
				end
			end
		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


	