Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function CopyTable(Table)
- local CopyedTable = {}
- for i, v in next, Table do
- if type(v) == "table" then
- CopyedTable[i] = CopyTable(v)
- else
- CopyedTable[i] = v
- end
- end
- return CopyedTable
- end
- getgenv().debug = CopyTable(debug)
- setreadonly(debug, false)
- getgenv().debug.getupvalues = function(...)
- local args = {...}
- if type(args[1]) == "number" then
- args[1] = args[1] + 1
- end
- return getupvals(unpack(args)) or {}
- end
- getgenv().debug.getupvalue = function(...)
- return getupval(...)
- end
- getgenv().debug.setupvalue = function(...)
- setupval(...)
- end
- getgenv().debug.getconstants = function(...)
- local args = {...}
- if type(args[1]) == "number" then
- args[1] = args[1] + 1
- end
- return getconsts(unpack(args)) or {}
- end
- getgenv().debug.setconstant = function(...)
- setconst(...)
- end
- getgenv().debug.getregistry = function()
- return getreg()
- end
- setreadonly(debug, true)
- getgenv().hookfunction = replaceclosure
- getgenv().hookfunc = replaceclosure
- getgenv().is_elysian_function = function(f)
- local Env = getfenv(f)
- local ElyFunc = false
- if Env.script and not Env.script.Parent and Env.script.Name:reverse() == "elysianscript" then
- ElyFunc = true
- end
- return ElyFunc
- end
- getgenv().compatibility_loaded = true
Advertisement
Add Comment
Please, Sign In to add comment