makes hookfunction require a secret key v2
Key RequiredUniversal

makes hookfunction require a secret key v2

Universal ScriptUnnesscaryInventionsUnnesscaryInventions 12.7K views 11 executesUpdated Oct 24, 2024
5.0/ 5(1 votes)
10100% Positive
Lua Script•25 lines (868 chars)
local hf1, hf2
local hookfunc = clonefunction(hookfunction)
local Code = "1"
hf1 = hookfunc(hookfunction, newcclosure(function(old, new, AdminKey)
  if not AdminKey then
    print("Missing Admin Key, Preventing hookfunction to replace" .. debug.getinfo(old).name .. "with" .. debug.getinfo(new).name .. "!")
    return hf1(print, print)
  end
  if AdminKey == Code then
    return hf1(old, new)
  else
    print("Incorrect Admin Key, Preventing hookfunction to replace" .. debug.getinfo(old).name .. "with" .. debug.getinfo(new).name .. "!")
  end
  return hf1(print, print)
end))

hf2 = hookfunc(clonefunction, newcclosure(function(func)
  if debug.getinfo(func).name == "hookfunction" then
    print("DENIED, Attempt to bypass restrictions on hookfunction by using clonefunction!")
    return hf2(print)
  end
  return hf2(func)
end), "1")

hookfunction(print, warn)

Features & Information

usage : hookfunction(print, warn, "1") made it so clonefunction cant bypass restrictions
#hookfunction#clonefunction

Community Comments (2)

UnnesscaryInventionsUnnesscaryInventionsOct 24, 2024(edited)

thanks for bat6969 for the idea

Dev10Dev10Jan 2, 2025(edited)

i dont understand?

More Scripts for Universal Scripts