Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. local Key = "J"
  2. local AutoClickerData = Instance.new("ScreenGui")
  3. local Enabled = Instance.new("TextLabel")
  4.  
  5. AutoClickerData.Name = "AutoClickerData"
  6. AutoClickerData.Parent = game.CoreGui
  7.  
  8. Enabled.Name = "Enabled"
  9. Enabled.Parent = AutoClickerData
  10. Enabled.BackgroundColor3 = Color3.new(1, 1, 1)
  11. Enabled.Size = UDim2.new(0, 200, 0, 50)
  12. Enabled.Visible = false
  13. Enabled.Font = Enum.Font.SourceSans
  14. Enabled.Text = "nope"
  15. Enabled.TextColor3 = Color3.new(0, 0, 0)
  16. Enabled.TextSize = 14
  17.  
  18.  
  19.  
  20.  
  21. function onKeyPress(inputObject, gameProcessedEvent)
  22. if inputObject.KeyCode == Enum.KeyCode[Key] then
  23. if Enabled.Text == "nope" then
  24. Enabled.Text = "yes"
  25. while Enabled.Text == "yes" do
  26. wait(0.25)
  27. mouse1click()
  28. end
  29. else
  30. Enabled.Text = "nope"
  31. end
  32. end
  33. end
  34.  
  35. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement