
7.2k Views
599 Executions
Anti AFK
Universal Script π
ogars_mainFirst script
1 year 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
Makes it so you cant get kicked for being afk!
-- Auto Move with Blue Target Marker and Close Button
-- LocalScript in StarterPlayer > StarterPlayerScripts
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local Debris = game:GetService("Debris")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
-- CONFIG --
local BASE_INTERVAL = 60 -- seconds between moves
local HASTE_MULTIPLIER = 2 -- hurry speed multiplier
local TARGET_DISTANCE = 10 -- studs in front/behind
-- END CONFIG --
local autoMoveEnabled = false
local hurryEnabled = false
local countdown = BASE_INTERVAL
local character
local nextDirection = -1 -- start moving backward first
local menuClosed = false
-- Handle respawn
local function onCharacterAdded(char)
character = char
end
player.CharacterAdded:Connect(onCharacterAdded)
if player.Character then
onCharacterAdded(player.Character)
end
-- Clean old UI
local old = playerGui:FindFirstChild("AutoMoveUI")
if old then old:Destroy() end
-- UI
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AutoMoveUI"
screenGui.Parent = playerGui
screenGui.ResetOnSpawn = false









it doesnt work