fix: Bugs + temp push for bugfixing

This commit is contained in:
Mark Marks 2024-09-22 00:05:15 +02:00
parent 88ca58df9b
commit d34edf8d70
21 changed files with 2317 additions and 73 deletions

View file

@ -61,7 +61,9 @@ local function collect<D, T...>(event: signal_like<D, T...>): (() -> (number, T.
end
end
local disconnect = event:Connect(function(...)
local connect = event.Connect or event.connect
assert(connect ~= nil, "Signal is missing a Connect function - is it really a signal?")
local disconnect = connect(event, function(...)
table.insert(storage, { ... })
mt.__iter = iter :: any
end)