marketplace/gaming

Anti-AFK

v0.1.0

@rebindfree

Takes a tiny step every few minutes so the server never kicks you for idling.

Gallery

Anti-AFK preview

Readme

Press F6 and every few minutes Rebind taps W then S, so your character steps forward and back and the server does not drop you for idling. Press F6 again to stop.

Needs Rebind 3.5.0 or newer on Windows, macOS, or Linux. No extra permissions.

Settings

  • Start or stop: the key that turns nudging on and off. Default F6.
  • Nudge every: minutes between nudges, 1 to 15. Each wait adds up to 20 seconds at random.
  • Start nudging when the package starts: begin right away without pressing the key.

Key changes apply while the package runs on Rebind 3.9 or newer. On older versions, restart the package after changing a key.

Before you use it

Games and servers set their own rules about idling. Many Roblox simulators allow AFK farming; competitive games and many Minecraft servers do not. Check the rules where you play.

Limits

  • The game window must be focused for the taps to reach it.
  • The "Anti-AFK on" and "off" notices appear in Rebind. To see them on the desktop, turn on Desktop notifications in Rebind's settings. Linux shows them only inside Rebind.
  • Live use remains unverified on Windows, macOS, and Linux.

Stop

Press F6, stop the package from the editor toolbar, or press Left Ctrl + Left Alt + K to stop all scripts.

Reviews

No reviews yet. Be the first, from the app.

Source

Version 0.1.0 (current)

main.luau

-- Anti-AFK: every few minutes, tap forward then back so the server never
-- sees you idle. The toggle key starts and stops it.

local cfg = UI.Schema({
  toggle = UI.Keybind("F6", { label = "Start or stop" }),
  minutes = UI.Slider(4, {
    min = 1,
    max = 15,
    suffix = " min",
    label = "Nudge every",
  }),
  autostart = UI.Toggle(false, {
    label = "Start nudging when the package starts",
  }),
})

local task = nil

local function stop()
  if task then
    task:Cancel()
    task = nil
  end
  HID.Up("W")
  HID.Up("S")
end

local function start()
  task = Run(function()
    while true do
      Sleep(cfg.minutes * 60000 + Math.Random(0, 20000))
      HID.Press("W", Math.Random(60, 140))
      HID.Press("S", Math.Random(60, 140))
    end
  end)
end

Bind(cfg.toggle, function()
  if task then
    stop()
    UI.Notify("Anti-AFK off", "info")
  else
    start()
    UI.Notify("Anti-AFK on", "success")
  end
end)

function OnStart()
  if cfg.autostart then
    start()
    UI.Notify("Anti-AFK on", "success")
  end
end

function OnStop()
  stop()
end