Universal Script 📌
1.7k Views
1.2k Executions

Anti Afk Script Made By Ai Open Sourced

Universal Script 📌
gc_idk
gc_idkFirst script
10 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

Keeps the User from being kicked because they were Idle for 20 minutes. (P.S. This Was Made Using Ai)

View Raw
---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 = {}


Comments

1
Log in to join the conversation. Login
RobinsonF's profile picture
RobinsonF10 months ago

Awesome work!!

1

Tags

More universal scripts

See all
Script hub
1.6M
2.1M
Bumped 6 hours ago
Key System

Script hub

#12 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
269.2k
120.2k
Bumped 6 hours ago
Key System
Script hub
171.3k
1.4M
Bumped 9 hours ago
Key System
Script hub
16.7k
3.2k
Bumped 11 hours ago
Key System
Paid
Script hub
17.4k
88.6k
Bumped 11 hours ago
Universal Script 📌
853
44
Approved 12 hours ago
Universal Script 📌
2.0M
4.5k
Bumped 12 hours ago