Upscalefanatic3

(Roblox) Dex Explorer [Compatible: Synapse]

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