Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Criando a GUI
- local ScreenGui = Instance.new("ScreenGui")
- local AutoClickButton = Instance.new("TextButton")
- -- Configuração da GUI
- ScreenGui.Parent = game:GetService("CoreGui") -- Mantém a GUI ativa
- AutoClickButton.Parent = Seringas
- AutoClickButton.Size = UDim2.new(0, 150, 0, 75)
- AutoClickButton.Position = UDim2.new(0.9, -110, 0.85, 0) -- Posição ao lado do botão de pular
- AutoClickButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- AutoClickButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- AutoClickButton.Text = "Auto Click: OFF"
- AutoClickButton.Font = Enum.Font.SourceSansBold
- AutoClickButton.TextSize = 18
- AutoClickButton.BackgroundTransparency = 0.3
- AutoClickButton.BorderSizePixel = 2
- AutoClickButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
- -- Variáveis de controle
- local autoClickEnabled = false
- -- Função para Auto Click
- function autoClick()
- while autoClickEnabled do
- -- Simula um clique do mouse
- local VirtualInputManager = game:GetService("VirtualInputManager")
- VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 1)
- wait(0.05) -- Intervalo entre cliques
- end
- end
- -- Alternar Auto Click ao clicar no botão
- AutoClickButton.MouseButton1Click:Connect(function()
- autoClickEnabled = not autoClickEnabled
- if autoClickEnabled then
- AutoClickButton.Text = "Auto Click: ON"
- autoClick()
- else
- AutoClickButton.Text = "Auto Click: OFF"
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment