Universal Script 📌
33.3k Views
17 Executions

Slots Hub Anti afk

Universal Script 📌
SlotsHub
SlotsHubFirst script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Anti Kick

Updates

  1. Script edited: Update script

  2. Script edited: Create script

View Raw
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local virtualUser = game:GetService("VirtualUser")

print("Slots Hub anti afk")

local function preventAFK()
    virtualUser:CaptureController()
    virtualUser:ClickButton2(Vector2.new())
end

local isCoroutineRunning = false

local function startPreventAFKCoroutine()
    if isCoroutineRunning then return end
    isCoroutineRunning = true
    coroutine.wrap(function()
        while true do
            wait(60)
            preventAFK()
        end
    end)()
end

player.Idled:Connect(function()
    preventAFK()
    startPreventAFKCoroutine()
end)

startPreventAFKCoroutine()



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!