Advertisement
SkitExploits

Roblox - Dev Explorer

Mar 12th, 2021
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.99 KB | None | 0 0
  1.     print "Made by: Skit Exploits "
  2.  
  3.  
  4.     local Dex = game:GetObjects("rbxassetid://418955355")[1]
  5.     Dex.Parent = game:GetService("CoreGui")
  6.        
  7.     local function Load(Obj, Url)
  8.     local function GiveOwnGlobals(Func, Script)
  9.         local Fenv = {}
  10.         local RealFenv = {script = Script}
  11.         local FenvMt = {}
  12.         FenvMt.__index = function(a,b)
  13.             if RealFenv[b] == nil then
  14.                 return getfenv()[b]
  15.             else
  16.                 return RealFenv[b]
  17.             end
  18.         end
  19.         FenvMt.__newindex = function(a, b, c)
  20.             if RealFenv[b] == nil then
  21.                 getfenv()[b] = c
  22.             else
  23.                 RealFenv[b] = c
  24.             end
  25.         end
  26.         setmetatable(Fenv, FenvMt)
  27.         setfenv(Func, Fenv)
  28.         return Func
  29.     end
  30.    
  31.     local function LoadScripts(Script)
  32.         if Script.ClassName == "Script" or Script.ClassName == "LocalScript" then
  33.             spawn(function()
  34.                 GiveOwnGlobals(loadstring(Script.Source, "=" .. Script:GetFullName()), Script)()
  35.             end)
  36.         end
  37.         for i,v in pairs(Script:GetChildren()) do
  38.             LoadScripts(v)
  39.         end
  40.     end
  41.    
  42.     LoadScripts(Obj)
  43.     end
  44.    
  45.     Load(Dex)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement