BobloScript.com

Description

Toggle the auto parry with K

And if you are gonna skid, at least give credits🙂

Functions

  • Auto Parry

Script Code

Raw Code
local starterGUI = game:GetService("StarterGui")local player = game.Players.LocalPlayerlocal RunService = game:GetService("RunService")local Players = game:GetService("Players")local Player = Players.LocalPlayerlocal autoParryEnabled = falselocal Cooldown = tick()local IsParried = falselocal Connection = nillocal function SendNotification(title, text, duration)    starterGUI:SetCore("SendNotification", {        Title = title,        Text = text,        Duration = duration or 3    })endlocal function GetBall()    for _, Ball in ipairs(workspace.Balls:GetChildren()) do        if Ball:GetAttribute("realBall") then            return Ball        end    endendlocal function ResetConnection()    if Connection then        Connection:Disconnect()        Connection = nil    endendlocal function ToggleAutoParry()    autoParryEnabled = not autoParryEnabled    local status = autoParryEnabled and "ON" or "OFF"    SendNotification("Auto Parry", "Auto Parry is now " .. status, 2)endgame:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessed)    if gameProcessed then return end    if input.KeyCode == Enum.KeyCode.K then        ToggleAutoParry()    endend)workspace.Balls.ChildAdded:Connect(function()    local Ball = GetBall()    if not Ball then return end    ResetConnection()    Connection = Ball:GetAttributeChangedSignal("target"):Connect(function()        IsParried = false    end)end)RunService.PreSimulation:Connect(function()    if not autoParryEnabled then return end        local Ball = GetBall()    local HRP = Player.Character and Player.Character:FindFirstChild("HumanoidRootPart")        if not Ball or not HRP then        return    end        local Speed = Ball.zoomies.VectorVelocity.Magnitude    local Distance = (HRP.Position - Ball.Position).Magnitude        if Ball:GetAttribute("target") == Player.Name and not IsParried and Distance / Speed <= 0.55 then        local blockButton = Player.PlayerGui.Hotbar.Block                for _, connection in pairs(getconnections(blockButton.Activated)) do            connection:Fire()        end        for _, connection in pairs(getconnections(blockButton.MouseButton1Click)) do            connection:Fire()        end        for _, connection in pairs(getconnections(blockButton.MouseButton1Down)) do            connection:Fire()        end                IsParried = true        Cooldown = tick()                if (tick() - Cooldown) >= 1 then            IsParried = false        end    endend)
Latest changeThumbnailJul 24

Comments

Loading comments…