function PartCacheStatic.Dispose(W)assert(getmetatable(W)==PartCacheStatic,ERR_NOT_INSTANCE:format("\068\105\115\112\111\115\101","\080\097\114\116\067\097\099\104\101\046\110\101\119"))for W,y in W.Open do y:Destroy()end for W,y in W.InUse do y:Destroy()end W.Template:Destroy()W.Open={}W.InUse={}W.CurrentCacheParent=nil W.GetPart=nil W.ReturnPart=nil W.SetCacheParent=nil W.Expand=nil W.Dispose=nil end return PartCacheStatic

function PartCacheStatic:Dispose()
	assert(getmetatable(self) == PartCacheStatic, ERR_NOT_INSTANCE:format("Dispose", "PartCache.new"))

	for _, object in self.Open do
		object:Destroy()
	end
	
	for _, object in self.InUse do
		object:Destroy()
	end
	
	self.Template:Destroy()
	
	self.Open = {}
	self.InUse = {}
	
	self.CurrentCacheParent = nil
	self.GetPart = nil
	self.ReturnPart = nil
	self.SetCacheParent = nil
	self.Expand = nil
	self.Dispose = nil
end

return PartCacheStatic
