Universal Script 📌
9.3k Views
127 Executions

Antiafk

Universal Script 📌
Joedyjrjj
JoedyjrjjPublished 5
2 years 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

Works in any game that does not use serversided afk checks (basically none, so should work in pretty much all games) will warn you in console if your executor is not supported, will print "Anti-AFK successfully applied" if it worked. (put into executor autoexec folder if you'd like it to always be loaded).

View Raw
wait(5) -- Wait 5 seconds for game to load

-- Wait for LocalPlayer to be available
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
while not LocalPlayer do
    LocalPlayer = Players.LocalPlayer
    wait(0.1) -- Check every 0.1 seconds
end

-- Now disable the Idled event
if getconnections then
    for _, idle in ipairs(getconnections(LocalPlayer.Idled)) do 
        idle:Disable() 
    end
    print("Anti-AFK successfully applied")
else
    warn("getconnections not supported by this exploit")
end


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
1.6M
2.0M
Bumped 4 hours ago
Key System

Script hub

#12 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
269.1k
115.7k
Bumped 5 hours ago
Key System
Script hub
171.3k
1.4M
Bumped 7 hours ago
Key System
Script hub
16.6k
3.2k
Bumped 9 hours ago
Key System
Paid
Script hub
17.3k
87.5k
Bumped 9 hours ago
Universal Script 📌
2.0M
4.5k
Bumped 10 hours ago