---
title: "Antiafk by v0idlua | Universal Roblox Script - ScriptBlox"
description: "Antiafk for any Roblox game: Removes the idle for 20 minutes kick"
canonical_url: "https://scriptblox.com/script/Universal-Script-Antiafk-159152"
meta:
  "og:description": "Antiafk for any Roblox game: Removes the idle for 20 minutes kick"
  "og:image": "https://scriptblox.com/images/script/0-1774785217611.jpg"
  "og:title": "Antiafk by v0idlua | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Antiafk for any Roblox game: Removes the idle for 20 minutes kick"
  "twitter:image": "https://scriptblox.com/images/script/0-1774785217611.jpg"
  "twitter:title": "Antiafk by v0idlua | 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/0-1774785217611.jpg)

# **Antiafk**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![v0idlua](https://scriptblox.com/images/photo/68dfba400066f47978504c31-1766722592399.png) [v0idlua](https://scriptblox.com/u/v0idlua)10K executions**

8 months 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

Removes the idle for 20 minutes kick

[View Raw](https://scriptblox.com/raw/Universal-Script-Antiafk-159152)

```
local Players = game:GetService("Players")
local VirtualUser = game:GetService("VirtualUser")

local player = Players.LocalPlayer

player.Idled:Connect(function()
    VirtualUser:CaptureController()
    VirtualUser:ClickButton2(Vector2.new(0,0))

    local character = player.Character
    if character and character:FindFirstChild("HumanoidRootPart") then
        character.HumanoidRootPart.CFrame = character.HumanoidRootPart.CFrame * CFrame.new(0,0,-5)
    end
end)

pcall(function()
    game:GetService("StarterGui"):SetCore("SendNotification", {
        Title = "Anti-AFK",
        Text = "Running...",
        Duration = 5
    })
end)


```

## **Comments **

**0**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-Antiafk-159152)

No comments yet. Be the first!

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Antiafk-159152#script","url":"https://scriptblox.com/script/Universal-Script-Antiafk-159152","name":"Antiafk","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"v0idlua","url":"https://scriptblox.com/u/v0idlua"},"datePublished":"2026-03-29T11:53:37.622Z","image":"https://scriptblox.com/images/script/0-1774785217611.jpg","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-Antiafk-159152#webpage","@type":"WebPage","description":"Antiafk for any Roblox game: Removes the idle for 20 minutes kick","name":"Antiafk by v0idlua | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Antiafk-159152","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Antiafk-159152#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Antiafk-159152#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Antiafk-159152"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Antiafk-159152#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":"Antiafk","position":3}]}]}
```

## Sitemap

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