Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can a script tell if someone is using a auto clicker?

Asked by 3 years ago

I have recently have been wanting to make a simulator and I don't want people to cheat in my game using auto clickers and stuff like that and whoever does should get kicked

1 answer

Log in to vote
0
Answered by 3 years ago

This should do the trick, I guess.

local clicks, limit, timer = 0, 100, 1
function playerClicked()
    if clicks < limit then
        clicks = clicks + 1
        -- Do whatever you want here
    end
end
while wait(timer) do
    clicks = 0
end
Ad

Answer this question