XxTw1st3d_D3m0nxX

Weapon Simulator 2 Autoclicker

Jun 9th, 2021
748
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. --press E to begin the auto clicker or stop it,I edited some parts in
  2. local Key = "E"
  3. local AutoClickerData = Instance.new("ScreenGui")
  4. local Enabled = Instance.new("TextLabel")
  5.  
  6. AutoClickerData.Name = "AutoClickerData"
  7. AutoClickerData.Parent = game.CoreGui
  8.  
  9. Enabled.Name = "Enabled"
  10. Enabled.Parent = AutoClickerData
  11. Enabled.BackgroundColor3 = Color3.new(1, 1, 1)
  12. Enabled.Size = UDim2.new(0, 200, 0, 50)
  13. Enabled.Visible = false
  14. Enabled.Font = Enum.Font.SourceSans
  15. Enabled.Text = "nope"
  16. Enabled.TextColor3 = Color3.new(0, 0, 0)
  17. Enabled.TextSize = 14
  18.  
  19.  
  20.  
  21.  
  22. function onKeyPress(inputObject, gameProcessedEvent)
  23. if inputObject.KeyCode == Enum.KeyCode[Key] then
  24. if Enabled.Text == "nope" then
  25. Enabled.Text = "yes"
  26. while Enabled.Text == "yes" do
  27. wait(0.01)
  28. --the Wait (0.01) change to the number you want to have your sword swing
  29. mouse1click()
  30. end
  31. else
  32. Enabled.Text = "nope"
  33. end
  34. end
  35. end
  36.  
  37. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Comments
Add Comment
Please, Sign In to add comment