for _, obj in pairs(getgc()) do if type(obj) == "function" and string.find(string.lower(debug.getinfo(obj, "n").name or ""), "detect") then pcall(function() hookfunction(obj, function() return end) end) elseif type(obj) == "table" then for k, v in pairs(obj) do if string.find(string.lower(tostring(k)), "detect") or string.find(string.lower(tostring(v)), "detect") then pcall(function() for k in pairs(obj) do obj[k] = nil end end) break end end end end