GO0GL3_CHR0M3

Untitled

Dec 14th, 2019
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local library=loadstring(game:HttpGet("https://raw.githubusercontent.com/CriShoux/OwlHub/master/UILib.lua", true))();local toggles={};
  2. local main = library:new("Main");
  3. main:newBtn("Infinite Reiatsu", function(tg)
  4. toggles.infr=tg;
  5. end)
  6. --Infinite stamina
  7. local mt = getrawmetatable(game);
  8. local nc = mt.__namecall;
  9. local nidx = mt.__newindex
  10. setreadonly(mt, false);
  11. mt.__namecall = newcclosure(function(...)
  12. local args={...};
  13. if getnamecallmethod()=='FireServer' and tostring(args[1])=='take' and toggles.infr then
  14. args[2]=0.01;
  15. return nc(unpack(args));
  16. end;
  17. return nc(...);
  18. end);
  19. --No cooldown on a few shits;
  20. local player = game.Players.LocalPlayer;local sword = player.stats.shikai.Value and player.stats.shikainame.Value or 'Zanpakuto'
  21. local cooltable = {};
  22. local oldtable={["stuff"]={}, ["sword"]={}};
  23. function refresh()
  24. cooltable = {};
  25. oldtable={["stuff"]={}, ["sword"]={}};
  26. for i,v in pairs(getgc()) do
  27. if type(v)=='function' and type(getfenv(v).script)=='userdata' and tostring(getfenv(v).script) == 'stuff' then
  28. for ind,const in pairs(debug.getconstants(v)) do
  29. if tostring(const):find'Z' then
  30. cooltable[v]={}
  31. for index, upval in pairs(debug.getupvalues(v)) do
  32. if upval == true then
  33. table.insert(cooltable[v], index)
  34. end
  35. if type(upval)=='function' then
  36. if pcall(debug.getupvalue, v, index+1) and type(debug.getupvalue(v, index+1))=='function' or type(debug.getupvalue(v, index-1))=='function' then
  37. if oldtable["stuff"][v] then
  38. oldtable["stuff"][v][index]={[true] = upval, [false]=function() end}
  39. else
  40. oldtable["stuff"][v]={[index]={[true] = upval, [false]=function() end}}
  41. end
  42. debug.setupvalue(v, index, oldtable["stuff"][v][index][not toggles.ncd])
  43. end
  44. end
  45. end
  46. end
  47. end
  48. end
  49. end
  50. for i,v in pairs(getgc()) do
  51. if type(v)=='function' and type(getfenv(v).script)=='userdata' and getfenv(v).script.Parent and (getfenv(v).script.Parent.Name==sword) then
  52. cooltable[v]={};
  53. for index, upval in pairs(debug.getupvalues(v)) do
  54. if type(upval)=='boolean' then
  55. table.insert(cooltable[v], index);
  56. end
  57. if type(upval)=='function' then
  58. if oldtable["sword"][v] then
  59. oldtable["sword"][v][index]={[true] = upval, [false]=function() end}
  60. else
  61. oldtable["sword"][v]={[index]={[true] = upval, [false]=function() end}}
  62. end
  63. debug.setupvalue(v, index, oldtable["sword"][v][index][not toggles.ncd])
  64. end
  65. end
  66. end
  67. end
  68. end
  69. refresh();
  70. player.CharacterAdded:Connect(function()
  71. repeat wait() until (player.Backpack:FindFirstChild(sword) or player.Character:FindFirstChild(sword)) and player.PlayerScripts.PlayerModule.CameraModule.CameraUtils:FindFirstChild'stuff'
  72. refresh()
  73. end)
  74.  
  75. main:newBtn("No Cooldown", function(tg)
  76. spawn(function()
  77. toggles.ncd = tg;
  78. refresh();
  79. if tg then
  80. while toggles.ncd do
  81. game:service'RunService'.Stepped:Wait()
  82. for func,v in pairs(cooltable) do
  83. for i, index in pairs(v) do
  84. debug.setupvalue(func, index, true)
  85. end
  86. end
  87. end
  88. end
  89. end)
  90. end)
Add Comment
Please, Sign In to add comment