Universal Script πŸ“Œ
7.2k Views
599 Executions

Anti AFK

Universal Script πŸ“Œ
ogars_main
ogars_mainFirst script
1 year 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

Makes it so you cant get kicked for being afk!

View Raw
-- 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


Comments

1
Log in to join the conversation. Login
I60u's profile picture
I60u1 year ago

it doesnt work

1

Tags

More universal scripts

See all
Script hub
33.1k
298.2k
Bumped 2 hours ago
Script hub
23.6k
5.2k
Bumped 2 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
213
596
Bumped 2 hours ago
Universal Script πŸ“Œ
1.6k
30.3k
Bumped 2 hours ago
Script hub
4.1M
558.8k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
29.1k
Bumped 3 hours ago
Key System
Script hub
14.0k
28.6k
Bumped 5 hours ago