Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Dois botões grandes + um botão menor de Manual Spam funcionando separados
- -- Serviços
- local VirtualInput = game:GetService("VirtualInputManager")
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- -- Criar GUI
- local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- screenGui.Name = "ManualSpamGui"
- screenGui.ResetOnSpawn = false
- -- Função para criar um botão de spam
- local function createSpamButton(name, positionX, sizeX, sizeY)
- local button = Instance.new("TextButton", screenGui)
- button.Size = UDim2.new(0, sizeX, 0, sizeY)
- button.Position = UDim2.new(0.5, positionX, 0.85, 0)
- button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.Text = name.." OFF"
- button.TextScaled = true
- button.Font = Enum.Font.SourceSansBold
- button.BorderSizePixel = 2
- local isSpamming = false
- local clickDelay = 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -- Rapidez do spam
- button.MouseButton1Click:Connect(function()
- isSpamming = not isSpamming
- button.Text = isSpamming and (name.." ON") or (name.." OFF")
- end)
- -- Loop de spam individual
- task.spawn(function()
- while true do
- if isSpamming then
- VirtualInput:SendMouseButtonEvent(0, 0, 0, true, game, 0)
- VirtualInput:SendMouseButtonEvent(0, 0, 0, false, game, 0)
- end
- task.wait(clickDelay)
- end
- end)
- end
- -- Criar dois botões grandes
- createSpamButton("Spam 1", -140, 120, 40) -- Esquerda
- createSpamButton("Spam 2", 0, 120, 40) -- Centro
- -- Criar um botão menor do lado direito
- createSpamButton("Spam 3", 140, 80, 30) -- Direita (menor)
Advertisement