Hi, I need a script which kicks people who try to use auto clicker to spam tools to glitch through the walls (no clipping). I can't figure out how to make one, I would really appreciate your help.
COMMUNITY QUESTION
Script to kick people who use auto clicker to spam tools to glitch through walls?
1 answer
Ok so you can make two scripts prevent auto-clicking by doing something like this:
Local Script (Put in the tool):
local tool = script.Parent
local remoteEvent = game.ReplicatedStorage.RemoteEvent --replace the remote event with the name of the remote event
local activated = 0
local count = 0
local isActivated = false
local function onClick()
if activated >= 10 then remoteEvent:FireServer() end
activated = activated + 1
while true do
tool.Activated:Connect(function()
isActivated = not isActivated
end)
if isActivated then
isActivated = false
break
end
count = count + 1
wait(1)
if count == 1 then
activated = 0
break
end
end
end
tool.Activated:Connect(onClick)
Server Script:
local remoteEvent = game.ReplicatedStorage.RemoteEvent
remoteEvent.OnServerEvent:Connect(function(player)
player:Kick() --insert your kick message inside the parentheses
end)
I don't know for sure if this will work so if it doesn't, then comment and let me know. Remember to insert a remote event into replicated storage.
1 comment
0
wont stop exploiters they can just remove the localscript
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Try using ServerInputService and detect every click and compare the time of the last with the current, and if it's like 0.2 seconds of difference, you can kick them or something like that
bruh wtf ? ServerInputService doesnt exist you mean UserInputService and thats clientsided means any skript kiddie can disable that so practically useless