Guest User

Untitled

a guest
Dec 14th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.33 KB | None | 0 0
  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. for i,v in pairs(getgc()) do
  24. if type(v)=='function' and type(getfenv(v).script)=='userdata' and tostring(getfenv(v).script) == 'stuff' then
  25. for ind,const in pairs(debug.getconstants(v)) do
  26. if tostring(const):find'Z' then
  27. cooltable[v]={}
  28. for index, upval in pairs(debug.getupvalues(v)) do
  29. if type(upval)=='function' then
  30. if pcall(debug.getupvalue, v, index+1) and type(debug.getupvalue(v, index+1))=='function' or type(debug.getupvalue(v, index-1))=='function' then
  31. if oldtable["stuff"][v] then
  32. oldtable["stuff"][v][index]={[true] = upval, [false]=function() end}
  33. else
  34. oldtable["stuff"][v]={[index]={[true] = upval, [false]=function() end}}
  35. end
  36. end
  37. end
  38. end
  39. end
  40. end
  41. end
  42. if type(v)=='function' and type(getfenv(v).script)=='userdata' and getfenv(v).script.Parent and (getfenv(v).script.Parent.Name==sword) then
  43. cooltable[v]={};
  44. for index, upval in pairs(debug.getupvalues(v)) do
  45. if type(upval)=='function' then
  46. if oldtable["sword"][v] then
  47. oldtable["sword"][v][index]={[true] = upval, [false]=function() end}
  48. else
  49. oldtable["sword"][v]={[index]={[true] = upval, [false]=function() end}}
  50. end
  51. end
  52. end
  53. end
  54. end
  55. function refresh()
  56. cooltable = {};
  57. for i,v in pairs(getgc()) do
  58. if type(v)=='function' and type(getfenv(v).script)=='userdata' and tostring(getfenv(v).script) == 'stuff' then
  59. for ind,const in pairs(debug.getconstants(v)) do
  60. if tostring(const):find'Z' then
  61. cooltable[v]={}
  62. for index, upval in pairs(debug.getupvalues(v)) do
  63. if upval == true then
  64. table.insert(cooltable[v], index)
  65. end
  66. end
  67. end
  68. end
  69. end
  70. end
  71. for i,v in pairs(getgc()) do
  72. if type(v)=='function' and type(getfenv(v).script)=='userdata' and getfenv(v).script.Parent and (getfenv(v).script.Parent.Name==sword) then
  73. cooltable[v]={};
  74. for ind, upval in pairs(debug.getupvalues(v)) do
  75. if type(upval)=='boolean' then
  76. table.insert(cooltable[v], ind);
  77. end
  78. end
  79. end
  80. end
  81. end
  82. refresh();
  83. player.CharacterAdded:Connect(function()
  84. repeat wait() until (player.Backpack:FindFirstChild(sword) or player.Character:FindFirstChild(sword)) and player.PlayerScripts.PlayerModule.CameraModule.CameraUtils:FindFirstChild'stuff'
  85. refresh()
  86. end)
  87.  
  88. main:newBtn("No Cooldown", function(tg)
  89. toggles.ncd = tg;
  90. for i,v in pairs(getgc()) do
  91. if type(v)=='function' and type(getfenv(v).script)=='userdata' and tostring(getfenv(v).script) == 'stuff' then
  92. for ind,const in pairs(debug.getconstants(v)) do
  93. if tostring(const):find'Z' then
  94. for index, upval in pairs(debug.getupvalues(v)) do
  95. if type(upval)=='function' then
  96. if pcall(debug.getupvalue, v, index+1) and type(debug.getupvalue(v, index+1))=='function' or type(debug.getupvalue(v, index-1))=='function' then
  97. debug.setupvalue(v, index, oldtable["stuff"][v][index][not toggles.ncd])
  98. end
  99. end
  100. end
  101. end
  102. end
  103. end
  104. if type(v)=='function' and type(getfenv(v).script)=='userdata' and getfenv(v).script.Parent and (getfenv(v).script.Parent.Name==sword) then
  105. for index, upval in pairs(debug.getupvalues(v)) do
  106. if type(upval)=='function' then
  107. debug.setupvalue(v, index, oldtable["sword"][v][index][not toggles.ncd])
  108. end
  109. end
  110. end
  111. end
  112. if tg then
  113. while toggles.ncd do
  114. game:service'RunService'.Stepped:Wait()
  115. for func,v in pairs(cooltable) do
  116. for i, index in pairs(v) do
  117. debug.setupvalue(func, index, true)
  118. end
  119. end
  120. end
  121. end
  122. end)
Add Comment
Please, Sign In to add comment