Advertisement
Genjvtsu

Untitled

Feb 16th, 2022
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. if shared.mypark then return end
  2. shared.mypark = true -- set to false to disable, can be re-executed
  3.  
  4. --[[
  5. features:
  6. - anti ankle break (for reaching)
  7. - auto power bar (works on every build, includes anti late shot)
  8. - infinite stamina
  9. - anti steal slowdown
  10. --]]
  11.  
  12. if not shared.mypark then return end
  13.  
  14. --[[local mt =getrawmetatable(game)
  15. local nid = mt.__newindex
  16. setreadonly(mt, false)
  17.  
  18. mt.__newindex = newcclosure(function(self, key, value)
  19.    return nid(self, key, value)
  20. end)--]]
  21.  
  22. local info = require(game:GetService("ReplicatedStorage").Modules.Settings)
  23. local power = game:GetService("Players").LocalPlayer.Info.Profile.ShotPower
  24. local stamina = game:GetService("Players").LocalPlayer.Info.Profile.Stamina
  25. local plr = game.Players.LocalPlayer
  26. local input_s = game:GetService("UserInputService")
  27. local actions = game:GetService("ReplicatedStorage").Events.Player.Actions
  28. local ball = game:GetService("ReplicatedStorage").Events.Player.Ball
  29.  
  30. local stamina_c = stamina:GetPropertyChangedSignal("Value"):Connect(function()
  31.    stamina.Value = tonumber(info.maxStam) * 2 or 9e9
  32. end)
  33.  
  34. local inputsRelease = nil
  35. for _, v in pairs(getgc()) do
  36.    if typeof(v) == "function" and islclosure(v) and not is_synapse_function(v) then
  37.        local c = debug.getconstants(v)
  38.        if table.find(c, "hasBall") and table.find(c, "ControllerPass") and table.find(c, "vectorToObjectSpace") then
  39.            inputsRelease = v
  40.            break
  41.        end
  42.    end
  43. end
  44.  
  45. local actions_f = nil
  46.  
  47. local wait_o;
  48. wait_o = hookfunction(getrenv().wait, newcclosure(function(time)
  49.    if type(time) == 'number' then
  50.        local caller = getinfo(3)
  51.        if (type(caller) == 'table' and string.find(caller.source, 'Input')) then
  52.            if time > 1.1 and time ~= 2 and (actions_f ~= nil and caller.func ~= actions_f) then
  53.                local c = debug.getconstants(caller.func)
  54.                local is_shootBall = table.find(c, "Pump") and table.find(c, "FireServer")
  55.                local is_pass = table.find(c, "Pass") and table.find(c, "Passing")
  56.                local is_steal = table.find(c, "steal") and table.find(c, "FireServer")
  57.                local is_rebound = table.find(c, "BlockDetect") and table.find(c, "rebound")
  58.                
  59.                if not is_rebound and not is_pass then
  60.                    if is_steal then
  61.                        return wait_o()
  62.                    elseif is_shootBall then
  63.                        return wait_o(0.5)
  64.                    else
  65.                        return wait_o(0.8)
  66.                    end
  67.                end
  68.            end
  69.        end
  70.    end
  71.  
  72.    return wait_o(time)
  73. end))
  74.  
  75. local power_c = power:GetPropertyChangedSignal("Value"):Connect(function()
  76.    local filled_percent = power.Value / info.BallPower
  77.    
  78.    if filled_percent >= 0.83 then
  79.        inputsRelease(Enum.KeyCode.E)
  80.        inputsRelease(Enum.KeyCode.Space)
  81.    end
  82. end)
  83.  
  84. local ankles_c = 0
  85. local fall_c = 0
  86. if not shared.mypark_hk then
  87.    shared.mypark_hk = true
  88.    for _, c in pairs(getconnections(actions.OnClientEvent)) do
  89.        actions_f = c.Function
  90.        
  91.        local constants = debug.getconstants(c.Function)
  92.        ankles_c = table.find(constants, "Ankles")
  93.        fall_c = table.find(constants, "Fall")
  94.        
  95.        debug.setconstant(c.Function, table.find(constants, "Ankles"), "")
  96.        debug.setconstant(c.Function, table.find(constants, "Fall"), "")
  97.    end
  98. end
  99.  
  100. while shared.mypark do
  101.    wait()
  102. end
  103.  
  104. hookfunction(getrenv().wait, wait_o)
  105.  
  106. stamina_c:Disconnect()
  107. power_c:Disconnect()
  108.  
  109. for _, c in pairs(getconnections(actions.OnClientEvent)) do
  110.    local constants = debug.getconstants(c.Function)
  111.    debug.setconstant(c.Function, ankles_c, "Ankles")
  112.    debug.setconstant(c.Function, fall_c, "Fall")
  113. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement