---
title: "Roblox Anti AFK | Universal Roblox Script - ScriptBlox"
description: "Roblox Anti AFK for any Roblox game: AFK in any game all day"
canonical_url: "https://scriptblox.com/script/Roblox-Anti-AFK_668"
meta:
  "og:description": "Roblox Anti AFK for any Roblox game: AFK in any game all day"
  "og:image": "https://scriptblox.com/images/script/4913625-1644660720916.jpg"
  "og:title": "Roblox Anti AFK | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Roblox Anti AFK for any Roblox game: AFK in any game all day"
  "twitter:image": "https://scriptblox.com/images/script/4913625-1644660720916.jpg"
  "twitter:title": "Roblox 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/4913625-1644660720916.jpg)

# **Roblox Anti AFK**

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

5 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

AFK in any game all day

## **Updates **

1. Mar 27, 2025

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

[View Raw](https://scriptblox.com/raw/Roblox-Anti-AFK_668)

```
wait(0.5)local ba=Instance.new("ScreenGui")
local ca=Instance.new("TextLabel")local da=Instance.new("Frame")
local _b=Instance.new("TextLabel")local ab=Instance.new("TextLabel")ba.Parent=game.CoreGui
ba.ZIndexBehavior=Enum.ZIndexBehavior.Sibling;ca.Parent=ba;ca.Active=true
ca.BackgroundColor3=Color3.new(0.176471,0.176471,0.176471)ca.Draggable=true
ca.Position=UDim2.new(0.698610067,0,0.098096624,0)ca.Size=UDim2.new(0,370,0,52)
ca.Font=Enum.Font.SourceSansSemibold;ca.Text="Anti Afk"ca.TextColor3=Color3.new(0,1,1)
ca.TextSize=22;da.Parent=ca
da.BackgroundColor3=Color3.new(0.196078,0.196078,0.196078)da.Position=UDim2.new(0,0,1.0192306,0)
da.Size=UDim2.new(0,370,0,107)_b.Parent=da
_b.BackgroundColor3=Color3.new(0.176471,0.176471,0.176471)_b.Position=UDim2.new(0,0,0.800455689,0)
_b.Size=UDim2.new(0,370,0,21)_b.Font=Enum.Font.Arial;_b.Text=""
_b.TextColor3=Color3.new(0,1,1)_b.TextSize=20;ab.Parent=da
ab.BackgroundColor3=Color3.new(0.176471,0.176471,0.176471)ab.Position=UDim2.new(0,0,0.158377,0)
ab.Size=UDim2.new(0,370,0,44)ab.Font=Enum.Font.ArialBold;ab.Text="Status: Active"
ab.TextColor3=Color3.new(0,1,1)ab.TextSize=20;local bb=game:service'VirtualUser'
game:service'Players'.LocalPlayer.Idled:connect(function()
bb:CaptureController()bb:ClickButton2(Vector2.new())
ab.Text="Roblox kicked you but we didnt let them!"wait(2)ab.Text="Status : Active"end)


```

## **Comments **

**2**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Roblox-Anti-AFK_668)

![Reign's profile picture](https://scriptblox.com/images/photo/61eb8ba71a813c8d1efac5fe-1642826729096.jpg)

[**Reign**](https://scriptblox.com/u/Reign)5 years ago(edited)

but my PC is going to explode if I execute inf yield with the auto farm scripts, so having it standalone is nice

1

![Kuro's profile picture](https://scriptblox.com/images/photo/6202725b5afab42209d1fddd-1748109821652.gif)

[**Kuro**](https://scriptblox.com/u/Kuro)Verified

![Verified Badge](https://scriptblox.com/_ipx/_/images/verified.webp)

Lv 105 years ago(edited)

just use infinite yield anti-afk lol

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Roblox-Anti-AFK_668#script","url":"https://scriptblox.com/script/Roblox-Anti-AFK_668","name":"Roblox Anti AFK","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"128114developer","url":"https://scriptblox.com/u/128114developer"},"datePublished":"2022-02-12T10:12:00.925Z","image":"https://scriptblox.com/images/script/4913625-1644660720916.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/Roblox-Anti-AFK_668#webpage","@type":"WebPage","description":"Roblox Anti AFK for any Roblox game: AFK in any game all day","name":"Roblox Anti AFK | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Roblox-Anti-AFK_668","breadcrumb":{"@id":"https://scriptblox.com/script/Roblox-Anti-AFK_668#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Roblox-Anti-AFK_668#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Roblox-Anti-AFK_668"]}]},{"@id":"https://scriptblox.com/script/Roblox-Anti-AFK_668#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":"Roblox Anti AFK","position":3}]}]}
```

## Sitemap

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