-- Locals for the scan local RecoilFunction = nil -- 1. Scan memory (GC) to find the internal Recoil "Add" function for i, v in pairs(getgc(true)) do if type(v) == "function" and debug.getinfo(v)["name"] == "Add" then local src = debug.getinfo(v)["short_src"] if src:find("Recoil") then RecoilFunction = v break end end end -- 2. Apply the Hook if RecoilFunction then local RecoilHook RecoilHook = hookfunction(RecoilFunction, function(...) local args = {...} -- args[1] is typically Vertical Recoil -- args[4] is typically Horizontal/Side Recoil args[1] = 0 args[4] = 0 return RecoilHook(table.unpack(args)) end) print("Successfully hooked RecoilFunction") else warn("Failed to find RecoilFunction. The module might not be loaded yet—try holding a gun first.") end