oth.hook
Hooks a function using the Off-Thread hook model.
function oth.hook(targettargetfunctionThe function to hook.: function, hookhookfunctionThe hook function.: function): ()Usage
Hook Instance.new
local old
old = oth.hook(Instance.new, function(...)
print("Creating new instance:", ...)
return old(...)
end)