Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local clicks = 50 -- amount of clicks
- local toggle = 'x' -- will toggle click spam
- local infclick = false; -- enable this to make it infinitely spam it
- local del = 0; -- Delay between clicks if loop click is on.
- -- // Func: \\ --
- local m = game.Players.LocalPlayer:GetMouse()
- local on = true
- local function fire(item)
- local s, e = pcall(function()
- fireclickdetector(item)
- end)
- if s then
- return 'Success'
- else
- game.Players.LocalPlayer:Kick("Your exploit is not supported to use this script.")
- end
- end
- m.Button1Down:Connect(function()
- if on == true then
- if m.Target then
- for i, v in pairs(m.Target:GetDescendants()) do
- if infclick then
- local antiYield = coroutine.create(function()
- while wait(del) do
- if on then
- fire(v)
- end
- end
- end)
- coroutine.resume(antiYield)
- else
- if v:IsA("ClickDetector") then
- for i = 1, clicks do
- fire(v)
- end
- end
- end
- end
- end
- end
- end)
- m.KeyDown:Connect(function(k)
- if k == toggle:lower() then
- on = not on
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement