---
title: "Simple Anti Afk by H7O_ | Universal Roblox Script - ScriptBlox"
description: "Simple Anti Afk for any Roblox game: jumps every second so u don't disconnect."
canonical_url: "https://scriptblox.com/script/Universal-Script-Simple-Anti-Afk-128622"
meta:
  "og:description": "Simple Anti Afk for any Roblox game: jumps every second so u don't disconnect."
  "og:image": "https://scriptblox.com/images/script/0-1772644590562.png"
  "og:title": "Simple Anti Afk by H7O_ | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Simple Anti Afk for any Roblox game: jumps every second so u don't disconnect."
  "twitter:image": "https://scriptblox.com/images/script/0-1772644590562.png"
  "twitter:title": "Simple Anti Afk by H7O_ | 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-1772644590562.png)

# **Simple Anti Afk**

10K executions

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![H7O\_](https://scriptblox.com/images/photo/699dc23d11afc6c1a5b66ba8-1772996719082.png) [H7O\_](https://scriptblox.com/u/H7O_)Lv 710K executions**

9 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

jumps every second so u don't disconnect.

[View Raw](https://scriptblox.com/raw/Universal-Script-Simple-Anti-Afk-128622)

```
local Players = game:GetService("Players")
local player = Players.LocalPlayer

if player:WaitForChild("PlayerGui"):FindFirstChild("AntiAFKGui") then
	player.PlayerGui.AntiAFKGui:Destroy()
end

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "AntiAFKGui"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = player:WaitForChild("PlayerGui")

local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 200, 0, 100)
Frame.Position = UDim2.new(0.5, -100, 0.5, -50)
Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
Frame.Active = true
Frame.Draggable = true
Frame.Parent = ScreenGui

local ToggleButton = Instance.new("TextButton")
ToggleButton.Size = UDim2.new(1, -20, 0, 50)
ToggleButton.Position = UDim2.new(0, 10, 0, 25)
ToggleButton.Text = "Anti AFK: OFF"
ToggleButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
ToggleButton.TextColor3 = Color3.new(1,1,1)
ToggleButton.Parent = Frame

local antiAFK = false

task.spawn(function()
	while true do
		if antiAFK then
			local character = player.Character
			if character and character:FindFirstChild("Humanoid") then
				character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
			end
		end
		task.wait(1)
	end


```

## **Comments **

**3**

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

![H7O\_'s profile picture](https://scriptblox.com/images/photo/699dc23d11afc6c1a5b66ba8-1772996719082.png)

[**H7O\_**](https://scriptblox.com/u/H7O_)Lv 7**Uploader**9 months ago

who disliked :(

2

![kouisanz's profile picture](https://scriptblox.com/images/photo/69b44c2b67b3dcfd36636727-1773423740942.jpg)

[**kouisanz**](https://scriptblox.com/u/kouisanz)9 months ago

w

1

![H7O\_'s profile picture](https://scriptblox.com/images/photo/699dc23d11afc6c1a5b66ba8-1772996719082.png)

[**H7O\_**](https://scriptblox.com/u/H7O_)Lv 7**Uploader**9 months ago

[@kouisanz](https://scriptblox.com/u/kouisanz) glad u like it!

2

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Simple-Anti-Afk-128622#script","url":"https://scriptblox.com/script/Universal-Script-Simple-Anti-Afk-128622","name":"Simple Anti Afk","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"H7O_","url":"https://scriptblox.com/u/H7O_"},"datePublished":"2026-03-04T17:16:30.575Z","image":"https://scriptblox.com/images/script/0-1772644590562.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-Simple-Anti-Afk-128622#webpage","@type":"WebPage","description":"Simple Anti Afk for any Roblox game: jumps every second so u don't disconnect.","name":"Simple Anti Afk by H7O_ | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Simple-Anti-Afk-128622","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Simple-Anti-Afk-128622#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Simple-Anti-Afk-128622#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Simple-Anti-Afk-128622"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Simple-Anti-Afk-128622#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":"Simple Anti Afk","position":3}]}]}
```

## Sitemap

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