Skip to content

Instantly share code, notes, and snippets.

@depthso
depthso / Hook lib emulation.luau
Last active November 22, 2025 12:36
Emulating the hook lib, used for having middle hooks that cannot be tampered with
--[[
@author depso (depthso)
@description Hook emulation, used for having middle hooks
Example usage:
local Old; Old = Emulation:HookFunction(true, MyFunction, function(...)
local Args = {...}
-- Stuff here
return Emulation:Unpack(Args)