github-tools / github-tools/github

BladeBall

Aberta
#784 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
3.8k
Forks
809
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

-- 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()

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.