
1.2k Views
718 Executions
Anti AFK
Universal Script 📌
main_vopFirst script
9 months ago
Please login to perform these actions:Does it work?
No reports yetNo 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
Script edited: Update script
Script edited: Update script
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 = {}









COOL
@Raffle_w thanks