Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

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

Asked by 4 days 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 4 days 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