Util
A utility module for GameModule (in plugin context too)
pool
local pool = util.pool
local partpool = pool.new("void", 5, template):expand(20)
-- a part pool of 20 parts, and will create 5 parts everytime it runs outMember
local customObjectPool = pool.new(function(obj, taking)
if obj then
obj.Visible = taking -- show when object is used, hide when not
return
end
-- if no obj then create and return
return createObject()
end, 5):expand(10)Method
Description
Property
Description
Last updated