Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Criar a GUI principal
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ResetOnSpawn = false -- Mantém a GUI após a morte
- -- Criar o botão de Manual Spam
- local ManualSpamButton = Instance.new("TextButton")
- ManualSpamButton.Parent = ScreenGui
- ManualSpamButton.Size = UDim2.new(0, 200, 0, 50) -- Tamanho
- ManualSpamButton.Position = UDim2.new(0.5, -100, 0.8, 0) -- Posição inicial
- ManualSpamButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0) -- Cor vermelha
- ManualSpamButton.Text = "Manual Spam"
- ManualSpamButton.TextSize = 20
- ManualSpamButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- ManualSpamButton.Font = Enum.Font.GothamBold
- ManualSpamButton.AutoButtonColor = false
- ManualSpamButton.BorderSizePixel = 0
- ManualSpamButton.ClipsDescendants = true
- ManualSpamButton.BackgroundTransparency = 0.2
- ManualSpamButton.ZIndex = 2
- ManualSpamButton.Active = true
- ManualSpamButton.Draggable = true -- Permite arrastar o botão na tela
- ManualSpamButton.TextScaled = true
- ManualSpamButton.TextWrapped = true
- ManualSpamButton.CornerRadius = UDim.new(0, 10) -- Bordas arredondadas
- -- Efeito ao pressionar o botão
- ManualSpamButton.MouseButton1Down:Connect(function()
- ManualSpamButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0) -- Fica mais escuro
- end)
- ManualSpamButton.MouseButton1Up:Connect(function()
- ManualSpamButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0) -- Volta ao normal
- end)
- -- Executar o script quando o botão for pressionado
- ManualSpamButton.MouseButton1Click:Connect(function()
- isClicking = not isClicking
- StatusLabel.Text = isClicking and "Spam On" or "Spam Off"
- ToggleButton.Text = isClicking and "Spam On" or "Spam Off"
- end
- -- Активация/деактивация по клавише "E"
- UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
- if not gameProcessedEvent and input.KeyCode == Enum.KeyCode.E then
- toggleClicking()
- end
- end)
- -- Активация/деактивация по нажатию на кнопку
- ToggleButton.Activated:Connect(toggleClicking)
- RunService.RenderStepped:Connect(function()
- if isClicking then
- local currentTime = tick()
- if currentTime - lastClickTime >= clickInterval then
- lastClickTime = currentTime
- VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 0)
- VirtualInputManager:SendMouseButtonEvent(0, 0, 0, false, game, 0)
- end
- end
- end)
- RunService.RenderStepped:Connect(function()
- if isClicking then
- local currentTime = tick()
- if currentTime - lastClickTime >= clickInterval then
- lastClickTime = currentTime
- VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 0)
- VirtualInputManager:SendMouseButtonEvent(0, 0, 0, false, game, 0)
- end
- end
- end)
- local RunService = game:GetService("RunService") or game:FindFirstDescendant("RunService")
- local Players = game:GetService("Players") or game:FindFirstDescendant("Players")
- local VirtualInputManager = game:GetService("VirtualInputManager") or game:FindFirstDescendant("VirtualInputManager")
- local Player = Players.LocalPlayer
- local Cooldown = tick()
- local IsParried = false
- local Connection = nil
- local function GetBall()
- for _, Ball in ipairs(workspace.Balls:GetChildren()) do
- if Ball:GetAttribute("realBall") then
- return Ball
- end
- end
- end
- local function ResetConnection()
- if Connection then
- Connection:Disconnect()
- Connection = nil
- end
- end
- workspace.Balls.ChildAdded:Connect(function()
- local Ball = GetBall()
- if not Ball then return end
- ResetConnection()
- Connection = Ball:GetAttributeChangedSignal("target"):Connect(function()
- Parried = false
- end)
- end)
- RunService.PreSimulation:Connect(function()
- local Ball, HRP = GetBall(), Player.Character.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 Parried and Distance / Speed <= 0.55 then
- VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 0)
- Parried = true
- Cooldown = tick()
- if (tick() - Cooldown) >= 1 then
- Partied = false
- end
- end
- end)
- print("Manual Spam ativado!") -- Exemplo, substitua pelo seu código
- end)
- -- Criar um efeito de sombra para o botão
- local UICorner = Instance.new("UICorner", ManualSpamButton)
- UICorner.CornerRadius = UDim.new(0, 10) -- Bordas arredondadas
- local UIStroke = Instance.new("UIStroke", ManualSpamButton)
- UIStroke.Thickness = 3
- UIStroke.Color = Color3.fromRGB(255, 255, 255) -- Borda branca
- UIStroke.Transparency = 0.3
Advertisement
Add Comment
Please, Sign In to add comment