github-tools / github-tools/github

BladeBall

未關閉
#784 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
3.8k
分支
809
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

該 issue 包含一個用於 Blade Ball 自動化的 Lua LocalScript,但未指定任何 repository 檔案、測試或要求的變更。首先判斷這段程式碼是否屬於該專案,並釐清預期範圍;未提供完成條件。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
lua
領域
game-dev
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
10/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。