ItsMeMikeyyy

Roblox DARK DEX v4

May 7th, 2021
1,381
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- < Services > --
  2. local InsertService = game:GetService("InsertService")
  3. local CoreGui = game:GetService("CoreGui")
  4. -- < Aliases > --
  5. local table_insert = table.insert
  6. local table_foreach = table.foreach
  7. local string_char = string.char
  8. local getobjects = function(a) -- Faster than game:GetObjects(a)
  9.     local Objects = {}
  10.     if a then
  11.         local b = InsertService:LoadLocalAsset(a)
  12.         if b then
  13.             table_insert(Objects, b)
  14.         end
  15.     end
  16.     return Objects
  17. end
  18. -- < Values > --
  19. local Charset = {}
  20. local Random_Instance = Random.new()
  21. local RemoteDebugWindow = CoreGui:FindFirstChild("RemoteDebugWindow", true)
  22. -- < Source > --
  23. if RemoteDebugWindow then
  24.     RemoteDebugWindow.Parent:Destroy()
  25. end
  26.  
  27. for i = 48,  57 do
  28.     table_insert(Charset, string_char(i))
  29. end
  30.  
  31. for i = 65,  90 do
  32.     table_insert(Charset, string_char(i))
  33. end
  34.  
  35. for i = 97, 122 do
  36.     table_insert(Charset, string_char(i))
  37. end
  38.  
  39. function RandomCharacters(length)
  40.     return length > 0 and RandomCharacters(length - 1)..Charset[Random_Instance:NextInteger(1, #Charset)] or ""
  41. end
  42.  
  43. -- Main version : "rbxassetid://5475777257"
  44. local Dex = getobjects("rbxassetid://5475777257")[1] -- Beta version: "rbxassetid://5482100934" | I will constantly update beta version so it might break
  45. pcall(syn.protect_gui, Dex)
  46. Dex.Name = RandomCharacters(Random_Instance:NextInteger(5,20))
  47. Dex.Parent = CoreGui
  48.  
  49. local function Load(Obj, Url)
  50.     local function GiveOwnGlobals(Func, Script)
  51.         local Fenv, RealFenv, FenvMt = {}, {script = Script}, {}
  52.         FenvMt.__index = function(a,b)
  53.             return RealFenv[b] == nil and getgenv()[b] or RealFenv[b]
  54.         end
  55.         FenvMt.__newindex = function(a, b, c)
  56.             if RealFenv[b] == nil then
  57.                 getgenv()[b] = c
  58.             else
  59.                 RealFenv[b] = c
  60.             end
  61.         end
  62.         setmetatable(Fenv, FenvMt)
  63.         pcall(setfenv, Func, Fenv)
  64.         return Func
  65.     end
  66.  
  67.     local function LoadScripts(_, Script)
  68.         if Script:IsA("LocalScript") then
  69.             spawn(function()
  70.                 GiveOwnGlobals(loadstring(Script.Source,"="..Script:GetFullName()), Script)()
  71.             end)
  72.         end
  73.         table_foreach(Script:GetChildren(), LoadScripts)
  74.     end
  75.  
  76.     LoadScripts(nil, Obj)
  77. end
  78.  
  79. Load(Dex)
  80.  
RAW Paste Data