Elisonpp

Manual spam

Feb 10th, 2025 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. -- Criar a GUI principal
  2. local ScreenGui = Instance.new("ScreenGui")
  3. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  4. ScreenGui.ResetOnSpawn = false -- Mantém a GUI após a morte
  5.  
  6. -- Criar o botão de Manual Spam
  7. local ManualSpamButton = Instance.new("TextButton")
  8. ManualSpamButton.Parent = ScreenGui
  9. ManualSpamButton.Size = UDim2.new(0, 200, 0, 50) -- Tamanho
  10. ManualSpamButton.Position = UDim2.new(0.5, -100, 0.8, 0) -- Posição inicial
  11. ManualSpamButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0) -- Cor vermelha
  12. ManualSpamButton.Text = "Manual Spam"
  13. ManualSpamButton.TextSize = 20
  14. ManualSpamButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  15. ManualSpamButton.Font = Enum.Font.GothamBold
  16. ManualSpamButton.AutoButtonColor = false
  17. ManualSpamButton.BorderSizePixel = 0
  18. ManualSpamButton.ClipsDescendants = true
  19. ManualSpamButton.BackgroundTransparency = 0.2
  20. ManualSpamButton.ZIndex = 2
  21. ManualSpamButton.Active = true
  22. ManualSpamButton.Draggable = true -- Permite arrastar o botão na tela
  23. ManualSpamButton.TextScaled = true
  24. ManualSpamButton.TextWrapped = true
  25. ManualSpamButton.CornerRadius = UDim.new(0, 10) -- Bordas arredondadas
  26.  
  27. -- Efeito ao pressionar o botão
  28. ManualSpamButton.MouseButton1Down:Connect(function()
  29. ManualSpamButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0) -- Fica mais escuro
  30. end)
  31.  
  32. ManualSpamButton.MouseButton1Up:Connect(function()
  33. ManualSpamButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0) -- Volta ao normal
  34. end)
  35.  
  36. -- Executar o script quando o botão for pressionado
  37. ManualSpamButton.MouseButton1Click:Connect(function()
  38. isClicking = not isClicking
  39. StatusLabel.Text = isClicking and "Spam On" or "Spam Off"
  40. ToggleButton.Text = isClicking and "Spam On" or "Spam Off"
  41. end
  42.  
  43. -- Активация/деактивация по клавише "E"
  44. UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
  45. if not gameProcessedEvent and input.KeyCode == Enum.KeyCode.E then
  46. toggleClicking()
  47. end
  48. end)
  49.  
  50. -- Активация/деактивация по нажатию на кнопку
  51. ToggleButton.Activated:Connect(toggleClicking)
  52.  
  53. RunService.RenderStepped:Connect(function()
  54. if isClicking then
  55. local currentTime = tick()
  56. if currentTime - lastClickTime >= clickInterval then
  57. lastClickTime = currentTime
  58. VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 0)
  59. VirtualInputManager:SendMouseButtonEvent(0, 0, 0, false, game, 0)
  60. end
  61. end
  62. end)
  63. RunService.RenderStepped:Connect(function()
  64. if isClicking then
  65. local currentTime = tick()
  66. if currentTime - lastClickTime >= clickInterval then
  67. lastClickTime = currentTime
  68. VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 0)
  69. VirtualInputManager:SendMouseButtonEvent(0, 0, 0, false, game, 0)
  70. end
  71. end
  72. end)
  73. local RunService = game:GetService("RunService") or game:FindFirstDescendant("RunService")
  74. local Players = game:GetService("Players") or game:FindFirstDescendant("Players")
  75. local VirtualInputManager = game:GetService("VirtualInputManager") or game:FindFirstDescendant("VirtualInputManager")
  76.  
  77. local Player = Players.LocalPlayer
  78.  
  79. local Cooldown = tick()
  80. local IsParried = false
  81. local Connection = nil
  82.  
  83. local function GetBall()
  84. for _, Ball in ipairs(workspace.Balls:GetChildren()) do
  85. if Ball:GetAttribute("realBall") then
  86. return Ball
  87. end
  88. end
  89. end
  90.  
  91. local function ResetConnection()
  92. if Connection then
  93. Connection:Disconnect()
  94. Connection = nil
  95. end
  96. end
  97.  
  98. workspace.Balls.ChildAdded:Connect(function()
  99. local Ball = GetBall()
  100. if not Ball then return end
  101. ResetConnection()
  102. Connection = Ball:GetAttributeChangedSignal("target"):Connect(function()
  103. Parried = false
  104. end)
  105. end)
  106.  
  107. RunService.PreSimulation:Connect(function()
  108. local Ball, HRP = GetBall(), Player.Character.HumanoidRootPart
  109. if not Ball or not HRP then
  110. return
  111. end
  112.  
  113. local Speed = Ball.zoomies.VectorVelocity.Magnitude
  114. local Distance = (HRP.Position - Ball.Position).Magnitude
  115.  
  116. if Ball:GetAttribute("target") == Player.Name and not Parried and Distance / Speed <= 0.55 then
  117. VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 0)
  118. Parried = true
  119. Cooldown = tick()
  120.  
  121. if (tick() - Cooldown) >= 1 then
  122. Partied = false
  123. end
  124. end
  125. end)
  126. print("Manual Spam ativado!") -- Exemplo, substitua pelo seu código
  127. end)
  128.  
  129. -- Criar um efeito de sombra para o botão
  130. local UICorner = Instance.new("UICorner", ManualSpamButton)
  131. UICorner.CornerRadius = UDim.new(0, 10) -- Bordas arredondadas
  132.  
  133. local UIStroke = Instance.new("UIStroke", ManualSpamButton)
  134. UIStroke.Thickness = 3
  135. UIStroke.Color = Color3.fromRGB(255, 255, 255) -- Borda branca
  136. UIStroke.Transparency = 0.3
Advertisement
Add Comment
Please, Sign In to add comment