Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getgenv().HttpGet = syn.request or game.HttpGet
- getgenv().GetObjects = game.GetObjects
- getgenv().error2 = error
- getgenv().gettenv = getstateenv
- getgenv().getallthreads = getstates
- getgenv().getthreads = getstates
- getgenv().checkclosure = is_synapse_function
- getgenv().getcontext = syn.get_thread_identity
- getgenv().setcontext = syn.set_thread_identity
- getgenv().getscriptfunction = function(scr)
- for i,v in pairs(getgc()) do
- if type(v) == "function" and getfenv(v).script == scr then
- return v
- end
- end
- end
- getgenv().getregthreads = newcclosure(function()
- local Threads = {}
- for i,v in pairs(getreg()) do
- if typeof(v) == "thread" then
- table.insert(Threads,v)
- end
- end
- return Threads
- end)
- getgenv().unlockmt = newcclosure(function(mt)
- local X = mt
- if typeof(X) ~= "table" then
- X = getrawmetatable(mt)
- end
- setreadonly(X,false)
- X.__metatable = nil
- end)
- getgenv().getlp = newcclosure(function()
- local plrs = game:GetService("Players")
- local lp = plrs.LocalPlayer
- return lp
- end)
- getgenv().info = newcclosure(function(str)
- game:GetService("TestService"):Message(str)
- end)
- getgenv().Info = info
- getgenv().getscriptenvs = newcclosure(function()
- local envs = {}
- for i,v in pairs(getscripts()) do
- pcall(function()
- local Senv = getsenv(v)
- if Senv and type(Senv) == "table" then
- table.insert(envs,Senv)
- end
- end)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement