SHARE
TWEET

Untitled

Vzurxy Sep 5th, 2019 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. getgenv().HttpGet = syn.request or game.HttpGet
  2.  
  3. getgenv().GetObjects = game.GetObjects
  4.  
  5. getgenv().error2 = error
  6.  
  7. getgenv().gettenv = getstateenv
  8.  
  9. getgenv().getallthreads = getstates
  10.  
  11. getgenv().getthreads = getstates
  12.  
  13. getgenv().checkclosure = is_synapse_function
  14.  
  15. getgenv().getcontext = syn.get_thread_identity
  16.  
  17. getgenv().setcontext = syn.set_thread_identity
  18.  
  19. getgenv().getscriptfunction = function(scr)
  20.       for i,v in pairs(getgc()) do
  21.             if type(v) == "function" and getfenv(v).script == scr then
  22.                   return v
  23.             end
  24.       end
  25. end
  26.  
  27. getgenv().getregthreads = newcclosure(function()
  28.       local Threads = {}
  29.       for i,v in pairs(getreg()) do
  30.             if typeof(v) == "thread" then
  31.                   table.insert(Threads,v)
  32.             end
  33.       end
  34.       return Threads
  35. end)
  36.  
  37. getgenv().unlockmt = newcclosure(function(mt)
  38.       local X = mt
  39.       if typeof(X) ~= "table" then
  40.             X = getrawmetatable(mt)
  41.       end
  42.       setreadonly(X,false)
  43.       X.__metatable = nil
  44. end)
  45.  
  46. getgenv().getlp = newcclosure(function()
  47.       local plrs = game:GetService("Players")
  48.       local lp = plrs.LocalPlayer
  49.       return lp
  50. end)
  51.  
  52. getgenv().info = newcclosure(function(str)
  53.       game:GetService("TestService"):Message(str)
  54. end)
  55.  
  56. getgenv().Info = info
  57.  
  58. getgenv().getscriptenvs = newcclosure(function()
  59.       local envs = {}
  60.       for i,v in pairs(getscripts()) do
  61.             pcall(function()
  62.                   local Senv = getsenv(v)
  63.                   if Senv and type(Senv) == "table" then
  64.                         table.insert(envs,Senv)
  65.                   end
  66.             end)
  67.       end
  68. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top