Universal Script 📌
33.4k Views
20 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!

Tags

More universal scripts

See all
Universal Script 📌
50
1
Approved 2 hours ago
Script hub
204
1.1k
Bumped 4 hours ago

Script hub

Lunyx Hub

Script hub
120.8k
222.1k
Bumped 4 hours ago
Key System
Script hub
10.7k
203.7k
Bumped 5 hours ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1

Script hub
33.4k
301.1k
Bumped 8 hours ago