Advertisement
YT_PatricioTGN

Dex Synapse

Apr 3rd, 2021
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. local Dex = rawget(game:GetObjects("rbxassetid://3567096419"), 0X1)
  2. if type(syn) == "table" and type(syn.protect_gui) == "function" then
  3. xpcall(syn.protect_gui, warn, Dex)
  4. end
  5. Dex.Name, Dex.Parent = "SynapseDex", game:GetService("CoreGui")
  6. function Load(x)
  7. if x:IsA("Script") then
  8. xpcall(coroutine.wrap(function()
  9. local Fenv, FenvMt, RealFenv, Func = {}, {}, {
  10. script = x
  11. }, loadstring(x.Source, "=" .. x:GetFullName())
  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), warn)
  30. end
  31. for _, v in pairs(x:GetChildren()) do
  32. xpcall(Load, warn, v)
  33. end
  34. end
  35. xpcall(Load, warn, Dex)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement