Dogmen

Untitled

Nov 19th, 2018
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. local Grab = game:GetService'ReplicatedStorage':WaitForChild'Grab';
  2.  
  3. local setreadonly = setreadonly or make_writeable;
  4. local getupvalues = getupvalues or debug.getupvalues or secret953;
  5. local setupvalue = setupvalue or debug.setupvalue or secret500;
  6.  
  7. local MT = getrawmetatable(game);
  8. setreadonly(MT, false);
  9.  
  10. local Index = MT.__index;
  11. local Namecall = MT.__namecall;
  12.  
  13. print'MT bypass';
  14.  
  15. MT.__namecall = function(self, ...)
  16. local Passed = {...};
  17. local Method = table.remove(Passed, #Passed);
  18. if Method == 'Kick' then
  19. return wait(9e9);
  20. elseif Method == 'InvokeServer' and self == Grab then
  21. return 'hi it\'s me, the one and only';
  22. end;
  23. return Namecall(self, ...);
  24. end;
  25.  
  26. warn'Done';
  27. print'REnv bypass';
  28.  
  29. local wait = wait;
  30. getrenv().wait = function(T)
  31. if T == 0.15 then
  32. local Success, Returned = pcall(getupvalues, 2);
  33. if Success then
  34. for i, v in next, Returned do
  35. if v == Grab then
  36. return wait(9e9);
  37. end;
  38. end;
  39. end;
  40. end;
  41. return wait(T);
  42. end;
  43.  
  44. warn'Done';
  45. print'Reg bypass';
  46.  
  47. local getreg = getreg or getregistry or debug.getregistry;
  48. local Char;
  49. local Plr;
  50.  
  51. for i, v in next, getreg() do
  52. if type(v) == 'function' then
  53. local Success, Returned = pcall(getupvalues, v);
  54. if Success and Returned then
  55. if not Char and Returned.setupChar then
  56. setupvalue(v, 'setupChar', function()end);
  57. warn'Done 1';
  58. Char = true;
  59. elseif not Plr and Returned.setupPlr then
  60. setupvalue(v, 'setupPlr', function()end);
  61. warn'Done 2';
  62. Plr = true;
  63. end;
  64. end;
  65. end;
  66. end;
Add Comment
Please, Sign In to add comment