Skip to content

BladeBall #784

@joaozcp4-cloud

Description

@joaozcp4-cloud

-- LocalScript para "Blade Ball" com automação de defesa e habilidades

local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local ui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
local remoteEventParry = game.ReplicatedStorage:WaitForChild("ParryEvent")
local remoteEventSkill = game.ReplicatedStorage:WaitForChild("SkillEvent")

-- Variáveis do script
local autoParryEnabled = false
local autoSpamEnabled = false
local parryAccuracy = 100
local spamThreshold = 1
local manualSpamEnabled = false
local spamActive = false

-- Função para atualizar a UI
local function createUI()
local mainFrame = Instance.new("Frame", ui)
mainFrame.Size = UDim2.new(0.3, 0, 0.3, 0)
mainFrame.Position = UDim2.new(0.5, -150, 0.5, -150)
mainFrame.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)

local toggleMain = Instance.new("TextButton", mainFrame)
toggleMain.Size = UDim2.new(1, 0, 0.1, 0)
toggleMain.Text = "Toggle Script"

local toggleParry = Instance.new("TextButton", mainFrame)
toggleParry.Size = UDim2.new(1, 0, 0.1, 0)
toggleParry.Position = UDim2.new(0, 0, 0.1, 0)
toggleParry.Text = "Auto Parry"

local parrySlider = Instance.new("Slider", mainFrame)
parrySlider.Size = UDim2.new(1, 0, 0.1, 0)
parrySlider.Position = UDim2.new(0, 0, 0.2, 0)
parrySlider.MinValue = 1
parrySlider.MaxValue = 100

local toggleSpam = Instance.new("TextButton", mainFrame)
toggleSpam.Size = UDim2.new(1, 0, 0.1, 0)
toggleSpam.Position = UDim2.new(0, 0, 0.3, 0)
toggleSpam.Text = "Auto Spam"

local spamSlider = Instance.new("Slider", mainFrame)
spamSlider.Size = UDim2.new(1, 0, 0.1, 0)
spamSlider.Position = UDim2.new(0, 0, 0.4, 0)
spamSlider.MinValue = 1
spamSlider.MaxValue = 5

local toggleManualSpam = Instance.new("TextButton", mainFrame)
toggleManualSpam.Size = UDim2.new(1, 0, 0.1, 0)
toggleManualSpam.Position = UDim2.new(0, 0, 0.5, 0)
toggleManualSpam.Text = "Manual Spam"

-- Adicionando ações aos botões
toggleMain.MouseButton1Click:Connect(function()
    autoParryEnabled = not autoParryEnabled
    toggleMain.Text = autoParryEnabled and "Script ON" or "Script OFF"
end)

toggleParry.MouseButton1Click:Connect(function()
    autoParryEnabled = not autoParryEnabled
    toggleParry.Text = autoParryEnabled and "Auto Parry ON" or "Auto Parry OFF"
end)

parrySlider.Changed:Connect(function()
    parryAccuracy = parrySlider.Value
end)

toggleSpam.MouseButton1Click:Connect(function()
    autoSpamEnabled = not autoSpamEnabled
    toggleSpam.Text = autoSpamEnabled and "Auto Spam ON" or "Auto Spam OFF"
end)

spamSlider.Changed:Connect(function()
    spamThreshold = spamSlider.Value
end)

toggleManualSpam.MouseButton1Click:Connect(function()
    manualSpamEnabled = not manualSpamEnabled
    toggleManualSpam.Text = manualSpamEnabled and "Manual Spam ON" or "Manual Spam OFF"
    if manualSpamEnabled then
        -- Botão de spam
        local spamButton = Instance.new("TextButton", ui)
        spamButton.Size = UDim2.new(0.1, 0, 0.1, 0)
        spamButton.Position = UDim2.new(0.5, -50, 0.5, -50)
        spamButton.Text = "Spam"
        spamButton.MouseButton1Down:Connect(function()
            spamActive = true
            while spamActive do
                remoteEventSkill:FireServer() -- Usar habilidade
                wait(1/4) -- 4 vezes por segundo
            end
        end)
        spamButton.MouseButton1Up:Connect(function()
            spamActive = false
        end)
    end
end)

end

-- Função para parry
local function parry()
local randomValue = math.random(1, 100)
if randomValue <= parryAccuracy then
remoteEventParry:FireServer() -- Executar parry
end
end

-- Função para verificar a bola e executar parry
local function checkBall()
local ball = workspace:FindFirstChild("Ball")
if ball then
local ballPosition = ball.Position
-- Lógica para prever a curva da bola (simplificada)
if (ballPosition - player.Character.HumanoidRootPart.Position).magnitude < 10 then -- Distância do parry
parry()
end
end
end

-- Loop principal
RunService.RenderStepped:Connect(function()
if autoParryEnabled then
checkBall()
end
end)

-- Chamar a função de criação da UI
createUI()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions