---
title: "Anti AFK by ogars_main | Universal Roblox Script - ScriptBlox"
description: "Anti AFK for any Roblox game: Makes it so you cant get kicked for being afk!"
canonical_url: "https://scriptblox.com/script/Universal-Script-Anti-AFK-48030"
meta:
  "og:description": "Anti AFK for any Roblox game: Makes it so you cant get kicked for being afk!"
  "og:image": "https://scriptblox.com/images/script/0-1754702377077.png"
  "og:title": "Anti AFK by ogars_main | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Anti AFK for any Roblox game: Makes it so you cant get kicked for being afk!"
  "twitter:image": "https://scriptblox.com/images/script/0-1754702377077.png"
  "twitter:title": "Anti AFK by ogars_main | 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-1754702377077.png)

# **Anti AFK**

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

1 year 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

Makes it so you cant get kicked for being afk!

[View Raw](https://scriptblox.com/raw/Universal-Script-Anti-AFK-48030)

```
-- Auto Move with Blue Target Marker and Close Button
-- LocalScript in StarterPlayer > StarterPlayerScripts

local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local Debris = game:GetService("Debris")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

-- CONFIG --
local BASE_INTERVAL = 60         -- seconds between moves
local HASTE_MULTIPLIER = 2       -- hurry speed multiplier
local TARGET_DISTANCE = 10       -- studs in front/behind
-- END CONFIG --

local autoMoveEnabled = false
local hurryEnabled = false
local countdown = BASE_INTERVAL
local character
local nextDirection = -1 -- start moving backward first
local menuClosed = false

-- Handle respawn
local function onCharacterAdded(char)
	character = char
end
player.CharacterAdded:Connect(onCharacterAdded)
if player.Character then
	onCharacterAdded(player.Character)
end

-- Clean old UI
local old = playerGui:FindFirstChild("AutoMoveUI")
if old then old:Destroy() end

-- UI
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AutoMoveUI"
screenGui.Parent = playerGui
screenGui.ResetOnSpawn = false


```

## **Comments **

**1**

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

![I60u's profile picture](https://scriptblox.com/images/user-default.webp)

[**I60u**](https://scriptblox.com/u/I60u)1 year ago

it doesnt work

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Anti-AFK-48030#script","url":"https://scriptblox.com/script/Universal-Script-Anti-AFK-48030","name":"Anti AFK","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"ogars_main","url":"https://scriptblox.com/u/ogars_main"},"datePublished":"2025-08-09T01:19:37.204Z","image":"https://scriptblox.com/images/script/0-1754702377077.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-Anti-AFK-48030#webpage","@type":"WebPage","description":"Anti AFK for any Roblox game: Makes it so you cant get kicked for being afk!","name":"Anti AFK by ogars_main | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Anti-AFK-48030","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Anti-AFK-48030#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Anti-AFK-48030#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Anti-AFK-48030"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Anti-AFK-48030#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":"Anti AFK","position":3}]}]}
```

## Sitemap

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