
1.7k Views
1.2k Executions
Anti Afk Script Made By Ai Open Sourced
Universal Script 📌
gc_idkFirst script
10 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
Keeps the User from being kicked because they were Idle for 20 minutes. (P.S. This Was Made Using Ai)
---Simple Anti-Afk Script Built By Ai
local Players = game:GetService("Players")
local VirtualUser = game:GetService("VirtualUser")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
if playerGui:FindFirstChild("SimpleAFKGui") then
playerGui:FindFirstChild("SimpleAFKGui"):Destroy()
end
local environment = {
isMobile = UserInputService.TouchEnabled and not UserInputService.KeyboardEnabled,
isPC = UserInputService.KeyboardEnabled,
hasVirtualUser = pcall(function() return VirtualUser:CaptureController() end),
hasCamera = workspace.CurrentCamera ~= nil,
executor = identifyexecutor and identifyexecutor() or "Unknown"
}
print("=== AFK Guardian Environment ===")
print("Platform:", environment.isMobile and "Mobile" or "PC")
print("Executor:", environment.executor)
print("VirtualUser:", environment.hasVirtualUser and "Available" or "Unavailable")
print("Camera:", environment.hasCamera and "Available" or "Unavailable")
print("===============================")
local settings = {
enabled = false,
baseInterval = 60,
jitter = 0.4,
burstChance = 0.15,
toggleKey = Enum.KeyCode.F4,
isWindowFocused = true,
unfocusedMultiplier = 0.7
}
local connections = {}









Awesome work!!