
4.9k Views
86 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
This is filtergc made in luau. Its not the best implementation of it but still useful for executors that dont have it. Functions required: - getgc (ofc) - debug.getconstants - debug.getupvalues - Updated: [+] fixed upvalues handling [+] made isexecutor to true as default [+] made it return all tables / functions if no arguments are passed into to avoid looking trough the gc for nothing [+] fixed (mostly) table lookup speed [+] improved general speed by around 20% [+] added Hash option to function and Metatable option to table [+] now passes sunc
type FunctionFilterOptions = {
Name: string?,
Hash: string?,
IgnoreExecutor: boolean?,
Constants: { any }?,
Upvalues: { any }?,
}
type TableFilterOptions = {
Metatable: { any }?,
Keys: { any }?,
Values: { any }?,
KeyValuePairs: { [any]: any }?,
}
type Function = ((...any) -> (...any))
type Table = ({ [any]: any })
type ReturnType = Function | Table
local info, find, insert = debug.getinfo, table.find, table.insert
local constants, upvalues = debug.getconstants, debug.getupvalues
local function filter_upvalues(func: Function, expected_upvalues: Table, ignore_executor: boolean): boolean
local func_upvalues = upvalues(func)
if #func_upvalues == 0 then return false end
local found = false
for _, value in pairs(expected_upvalues) do
if not find(func_upvalues, value) then continue end
found = true
break
end
return found
end
local function filter_constants(func: Function, expected_constants: Table, ignore_executor: boolean): boolean
if iscclosure(func) then return false end










bro said ip logger
what does this do?
doesnt work
ip logger maybe