---
title: "Slots Hub Anti afk | Universal Roblox Script - ScriptBlox"
description: "Slots Hub Anti afk for any Roblox game: Anti Kick"
canonical_url: "https://scriptblox.com/script/Universal-Script-Slots-Hub-Anti-afk-16043"
meta:
  "og:description": "Slots Hub Anti afk for any Roblox game: Anti Kick"
  "og:image": "https://scriptblox.com/images/script/6575557-1721853959115.png"
  "og:title": "Slots Hub Anti afk | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Slots Hub Anti afk for any Roblox game: Anti Kick"
  "twitter:image": "https://scriptblox.com/images/script/6575557-1721853959115.png"
  "twitter:title": "Slots Hub Anti afk | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/6575557-1721853959115.png)

# **Slots Hub Anti afk**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![SlotsHub](https://scriptblox.com/images/user-default.webp) [SlotsHub](https://scriptblox.com/u/SlotsHub)First script**

2 years ago

[**Get an executor**](https://scriptblox.com/executors?kind=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. Mar 26, 2025

   ****Script edited:**** Update script
2. Aug 1, 2024

   ****Script edited:**** Create script

[View Raw](https://scriptblox.com/raw/Universal-Script-Slots-Hub-Anti-afk-16043)

```
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 **](https://scriptblox.com/login?redirect=/script/Universal-Script-Slots-Hub-Anti-afk-16043)

No comments yet. Be the first!

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Slots-Hub-Anti-afk-16043#script","url":"https://scriptblox.com/script/Universal-Script-Slots-Hub-Anti-afk-16043","name":"Slots Hub Anti afk","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"SlotsHub","url":"https://scriptblox.com/u/SlotsHub"},"datePublished":"2024-07-24T20:45:59.159Z","image":"https://scriptblox.com/images/script/6575557-1721853959115.png","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-Slots-Hub-Anti-afk-16043#webpage","@type":"WebPage","description":"Slots Hub Anti afk for any Roblox game: Anti Kick","name":"Slots Hub Anti afk | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Slots-Hub-Anti-afk-16043","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Slots-Hub-Anti-afk-16043#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Slots-Hub-Anti-afk-16043#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Slots-Hub-Anti-afk-16043"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Slots-Hub-Anti-afk-16043#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"Slots Hub Anti afk","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
