iOwn_YouJoin Date: 2012-12-21 Post Count: 599 |
Hey, I have created an idle game, which all you do is basically click, and recently i'm seeing players using autoclickers.
I've wondered if there's a way I could prevent that? |
|
|
Well, just say, if they're clicking like 20 clicks per second, they're probably cheating. That's about it, really...
Yeah, they could slow it down, but I don't think there's a way to detect that. |
|
|
That's pretty much the some of it. Just make a script to detect unnatural clicking.
20 times a second for a consistent hour is pretty in human. That's just an example. I would have it literally remove them from the game if it happens. Delete that Player son! |
|
iOwn_YouJoin Date: 2012-12-21 Post Count: 599 |
It's hard for me to believe that that's impossible, I believe that there must be a way |
|
iOwn_YouJoin Date: 2012-12-21 Post Count: 599 |
Also I rather not relay on clicks per second, since I can click 15 times per second I'm sure there are people who can click faster then me. |
|
|
Simply put, Autoclickers are just, your mouse clicking. There is no way to determine if the actual button on the mouse was pressed or not. At least not in ROBLOX. |
|
iOwn_YouJoin Date: 2012-12-21 Post Count: 599 |
Ah.. Well, Thank you guys for trying to help :)
I appreciate it! |
|
RerumuJoin Date: 2014-10-11 Post Count: 1489 |
No one can click 15 times in a single second, and the solution is to make a variable that resets every 2 seconds, but increases by 1 every click, and if it reaches a certain number before reseting, like 30, it could kick the player, cuz 30 clicks in 2 seconds is inhuman. |
|
LightlimnJoin Date: 2010-05-09 Post Count: 4079 |
just add a cooldown. there'll still be autoclickers but if you make the cooldown a human rate (e.g 0.25) then it'll be fine |
|
|
"I can click 15 times per second"
You can't click 15 times a second. |
|
|
http://cookie.riimu.net/speed/ |
|
Gragon387Join Date: 2011-01-02 Post Count: 200 |
I've been able to click 14 times a second |
|
Gragon387Join Date: 2011-01-02 Post Count: 200 |
This is just a guess, its probably wrong 100%, but this should slow down their clicking maybe?
game.Players.LocalPlayer.MouseButton1Click:connect(function()
wait(0.1)
end) |
|
LightlimnJoin Date: 2010-05-09 Post Count: 4079 |
100% wrong
local timer = tick()
script.Parent.MouseButton1Down:connect(function()
if tick()-timer > 0.1 then
timer = tick()
-- do stuff
end
end) |
|
|
Well assuming you're using UIS (which you should be!)
local UIS = game:GetService("UserInputService")
local db = true
local limit = 1.5 --How long to wait before they can click again
UIS.InputBegan:connect(function(input)
if db and input.UserInputType == Enum.UserInputType.MouseButton1 then
db = not db
--Your code
wait(limit)
db = not db
end
end) |
|
iOwn_YouJoin Date: 2012-12-21 Post Count: 599 |
everyone who said no one can click 15 times a second
google "jitter click"
as for the scripts and methods, Thank you guy! :) |
|
|
i googled jitter click and 2 of the images were of surgery its really gross |
|
RerumuJoin Date: 2014-10-11 Post Count: 1489 |
Sure, on can click more than 10 times a second, just remember that those people dont have tendons in their fingers anymore. |
|
|
Jitterclicking can result in carpeltunnel which is what u saw from surgery i had have it done to me bc i can click up to 30 times a second but not for and hour straight for about 1-3 mins but thats pretty much it what i would do is have a while true do loop that detects the players clicks if it reaches around 1200 in 20 secs then they are obv auto clicking so they are to be kicked and make it so every 20 secs it resets the score so you know ;D
I win everytime still uses while true do print('im newbie') end |
|
|
Check the time between clicks. (maybe) |
|
|
Calculate the time between each clicks, if the delay between the clicks are the same then it's probably a machine.
Imagine, a human can't click precisely every 1.345 seconds, while a machine can. |
|
|
'Imagine, a human can't click precisely every 1.345 seconds, while a machine can.'
I'd argue the opposite, a human's life-press pace is probably a lot more steady than a machine's, a machine's precision/accuracy when dealing with time, isn't exactly top-notch. |
|
|
|
"idle game" and your "Anti autoclicker" |
|
Smash108Join Date: 2014-07-18 Post Count: 1780 |
Make an Intvalue in the player that adds 1 every time the player clicks and resets every second, when it resets, check if it is over 20. if so, kick them. |
|