Refactor arena modes and add objective event feed

This commit is contained in:
Leshyi committed 2026-11-29 23:06:14 +05:00
1 parent df6ab8efe1
commit b87a3770a1
26 files changed
+1221 -654

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
--!strict
local Types = require(script.Parent.Types)
local Janitor = {}
function Janitor.new(): Types.Janitor
local items: {(() -> ()) | Instance | RBXScriptConnection} = {}
return {
give = function(item) table.insert(items, item) end,
clean = function()
for i = #items, 1, -1 do
local item = table.remove(items, i)
if typeof(item) == "Instance" then item:Destroy()
elseif typeof(item) == "RBXScriptConnection" then item:Disconnect()
else item() end
end
end,
}
end
return Janitor