AntiAutoclick (Detects Autoclicking)

Ask that to the 63 people that clicked it

1 Like

people have macros that can record their gameplay and replay the inputs, and they can just rejoin and rerun it even if you have a sophisticated localscript to detect that sort of thing. My suggestion would be either to make grinding something that requires your attention (you can’t do it with your eyes closed), or set a stat named AFK to true every time some stat named “secondsplaying” hits 1200 (20 min). Only reverse it once they solve some sort of easy captcha. That way they can’t just dodge it by rejoining.

also, the best way to stop auto-clicking is probably just to detect if their mouse has been in the same place for a while and they’ve made a certain number of clicks with it in that position.

this isn’t a bad script at all. I had something similar myself but people just used macros instead lol

That is wrong. It’s a local script, i.e. client side. You can delete the script easily.

2 Likes

Actually that is an awesome idea. I think the not moving mouse and the way I have it combined would improve it greatly

I added this as a setting, the model has been updated.

Since over 95% of people who use auto clickers don’t exploit, this would be very useful indeed.

This would especially be useful for clicking games where you need to buy an auto-click gamepass. This would stop the majority of people from bypassing the gamepass.

3 Likes

AntiAutoclick v.3.0.0


Changes (breaking)

  • AntiAutoclick “properties” are no longer direct members of the AntiAutoclick table. They have been moved to a private constant table.

Changes (non-breaking)

  • Major documentation overhaul.

  • Removed warnings for calling a function twice in a row.

Bug Fixes

  • Fixed the flag count not showing up in warnings.

  • Fixed not printing “passed checks” the first time if the player wasn’t flagged.

2 Likes

To set this up I am supposed to create a LocalScript inside of StarterPlayerScripts and then parent the AntiAutoClick Module to the LocalScript that is:

local AntiAutoclick = require(script.AntiAutoclick)
AntiAutoclick.DetectedAutoclicking:Connect(function()
end)
AntiAutoclick:Start()

? If that is correct then it doesn’t seem to be working unless it’s not supposed to kick me

1 Like

It doesn’t kick people, it just detects. If you wanted to kick someone when it detected autoclicking, you just have to use a remote event and fire to the server to let the server know. Then the server can kick the player who fired the event.

This module does not do anything to people who autoclick. You have to implement your own punishment upon autoclick detection.

Example code:

-- In a local script in StarterPlayerScripts
local AntiAutoclick = require(script.AntiAutoclick)

-- You need to make this remote event and put it into 
-- ReplicatedStorage. If you don't know what these are,
-- I suggest watching an AlvinBlox tutorial on them
local autoclickingRemoteEvent = game.ReplicatedStorage.Autoclicking

-- This event will fire from the "AntiAutoclick" module when
-- it detects that the player has been autoclicking
AntiAutoclick.DetectedAutoclicking:Connect(function()
 -- This will tell the server we were autoclicking
 autoclickingRemoteEvent:FireServer()
end)

AntiAutoclick:Start()
-- In a server script in ServerScriptService
local autoclickingRemoteEvent = game.ReplicatedStorage.Autoclicking
local KICK_MESSAGE = "You were kicked for autoclicking."

-- This event will be fired when the client uses 
-- the 'autoclickingRemoteEvent:FireServer()' method
autoclickingRemoteEvent.OnServerEvent:Connect(function(autoclickingPlayer)
 -- This will kick the player from the game and make the 
 -- 'KICK_MESSAGE' appear on their screen when they are kicked
 autoclickingPlayer:Kick(KICK_MESSAGE)
end)

Oh alright. I don’t know anything about scripting so implementing my own script to make this script work how I want it to would be impossible unless I pay someone else to do it for me.

If you wanna disable the Anti Auto Clicker script for people with premium you’re able to do the script below, (Local Script inside of StarterPlayerScripts), on line 5 where it says “AAC” that’s the name of the script you’re disabling which in this case is the anti autoclicker, whatever you named that script you wanna change “AAC” to that.

local Players = game:GetService("Players")
local player = Players.LocalPlayer

if player.MembershipType == Enum.MembershipType.Premium then
game.StarterPlayer.StarterPlayerScripts.AAC.Disabled = true
end
1 Like

In my game, the player is always standing still, will this affect the anti-autoclicker?

1 Like

Only if they are idly clicking. Their character movement does not affect the detection at all. Only mouse movement + clicking.