Universal Script 📌
1.2k Views
718 Executions

Anti AFK

Universal Script 📌
main_vop
main_vopFirst script
9 months ago
Get an 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

This LocalScript adds an AFK Mode button and That: Can Move Toggle Around Prevents Roblox AFK kick Freezes character and camera Turns off 3D rendering for cooling Removes post effects and lights Adds optional black screen for power saving Reverts everything when AFK is turned off Good for mobile players who want to AFK without overheating or lag spikes.

Updates

  1. Script edited: Update script

  2. Script edited: Update script

View Raw
local Players = game:GetService("Players")
local Lighting = game:GetService("Lighting")
local RunService = game:GetService("RunService")
local VirtualUser = game:GetService("VirtualUser")
local UIS = game:GetService("UserInputService")

local player = Players.LocalPlayer
local camera = workspace.CurrentCamera

local gui = Instance.new("ScreenGui")
gui.ResetOnSpawn = false
gui.IgnoreGuiInset = true
gui.Parent = player:WaitForChild("PlayerGui")

local black = Instance.new("Frame")
black.Parent = gui
black.Size = UDim2.fromScale(1,1)
black.BackgroundColor3 = Color3.fromRGB(0,0,0)
black.ZIndex = 5
black.Visible = false

local btn = Instance.new("TextButton")
btn.Parent = gui
btn.Size = UDim2.fromOffset(140,36)
btn.AnchorPoint = Vector2.new(1,0)
btn.BackgroundColor3 = Color3.fromRGB(25,25,25)
btn.TextColor3 = Color3.fromRGB(255,255,255)
btn.TextScaled = true
btn.Font = Enum.Font.SourceSansBold
btn.Text = "Anti AFK"
btn.ZIndex = 6

task.wait()
btn.Position = UDim2.fromOffset(gui.AbsoluteSize.X - 20, 60)

local blur = Instance.new("BlurEffect")
blur.Size = 0
blur.Parent = Lighting

local removedColorMaps = {}


Comments

2
Log in to join the conversation. Login
Raffle_w's profile picture
Raffle_w9 months ago

COOL

2
main_vop's profile picture
main_vopUploader9 months ago

@Raffle_w thanks

2

More universal scripts

See all
Script hub
3.0M
18.5M
Bumped 4 hours ago

Script hub

Hall of Fame #1

KeylessVerified script badgeYARHM Hub KEYLESS 2026

Script hub
119.5k
193.9k
Bumped 9 hours ago
Key System
Script hub
180.9k
1.8M
Bumped 9 hours ago
Key System
Universal Script 📌
1.2k
2.6k
Bumped 9 hours ago
Script hub
60.2k
244.1k
Bumped 9 hours ago
Key System
Universal Script 📌
6.2k
53.5k
Bumped 12 hours ago