Advertisement
ToxicTheBoss

bet

Jan 3rd, 2020
1,302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1.  
  2. local clicks = 50 -- amount of clicks
  3. local toggle = 'x' -- will toggle click spam
  4. local infclick = false; -- enable this to make it infinitely spam it
  5. local del = 0; -- Delay between clicks if loop click is on.
  6.  
  7. -- // Func: \\ --
  8.  
  9. local m = game.Players.LocalPlayer:GetMouse()
  10. local on = true
  11.  
  12. local function fire(item)
  13. local s, e = pcall(function()
  14. fireclickdetector(item)
  15. end)
  16. if s then
  17. return 'Success'
  18. else
  19. game.Players.LocalPlayer:Kick("Your exploit is not supported to use this script.")
  20. end
  21. end
  22.  
  23. m.Button1Down:Connect(function()
  24. if on == true then
  25. if m.Target then
  26. for i, v in pairs(m.Target:GetDescendants()) do
  27. if infclick then
  28. local antiYield = coroutine.create(function()
  29. while wait(del) do
  30. if on then
  31. fire(v)
  32. end
  33. end
  34. end)
  35. coroutine.resume(antiYield)
  36. else
  37. if v:IsA("ClickDetector") then
  38. for i = 1, clicks do
  39. fire(v)
  40. end
  41. end
  42. end
  43. end
  44. end
  45. end
  46. end)
  47.  
  48. m.KeyDown:Connect(function(k)
  49. if k == toggle:lower() then
  50. on = not on
  51. end
  52. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement