Advertisement
xTh3_Hunter

Dex

Jan 21st, 2021 (edited)
2,059
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. local loaded, dex = pcall(game.GetObjects, game, "rbxassetid://3567096419")
  2. if not loaded or (loaded and (not dex[1] or typeof(dex[1]) ~= "Instance")) then
  3.     return warn(not loaded and dex or "Failed to load '3567096419'")
  4. end
  5. dex = dex[1]
  6. if syn and type(syn) == "table" and syn.protect_gui and type(syn.protect_gui) == "function" then
  7.     pcall(syn.protect_gui, dex)
  8. end
  9. math.randomseed(os.clock())
  10. local name = ""
  11. for _ = 1, math.random(24, 33) do
  12.     name = name .. string.char(math.random(33, 126))
  13. end
  14. dex.Name = name
  15. dex.Parent = (get_hidden_ui and get_hidden_ui()) or (gethui and gethui()) or (get_hidden_gui and get_hidden_gui()) or game:GetService("CoreGui")
  16. local meta = {__index = getfenv()}
  17. local function sandbox(v)
  18.     task.spawn(setfenv(loadstring(v.Source, "=" .. v:GetFullName()), setmetatable({script = v}, meta)))
  19. end
  20. if dex:IsA("LuaSourceContainer") then
  21.     sandbox(v)
  22. end
  23. for _, v in ipairs(dex:GetDescendants()) do
  24.     if v:IsA("LuaSourceContainer") then
  25.         sandbox(v)
  26.     end
  27. end
  28. return dex
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement