Universal Script 📌
12.7k Views
12 Executions

makes hookfunction require a secret key v2

Universal Script 📌
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

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

View Raw
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)



Comments

2
Log in to join the conversation. Login
Dev10's profile picture
Dev102 years ago(edited)

i dont understand?

1
UnnesscaryInventions's profile picture
UnnesscaryInventionsUploader2 years ago(edited)

thanks for bat6969 for the idea

1

Tags

More universal scripts

See all
Script hub
29.4k
92.0k
2 weeks ago
Key System

Script hub

#7 this week

Verified script badgeArcane Hub | 125+ Games & 4000+ Features

Script hub
138.0k
417.6k
9 months ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub | Easy Key System

Script hub
3.9M
964.7k
1 year ago

Script hub

Hall of Fame #3

KeylessVerified script badge[KEYLESS] Moondiety Script | 20+ supported Games

Script hub
128
9
2 days ago
Key System
Paid
Script hub
3.0M
14.6M
3 years ago

Script hub

Hall of Fame #1

KeylessVerified script badgeYARHM - MM2, FTF, Forsaken, etc.

Script hub
394
132
2 days ago
Key System