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