Does LoadCharacterAsync() reset the AFK Timer?

Basically, I just want to confirm if the LoadCharacterAsync() resets the AFK Timer.

I know that usual method is to Teleport the player, but I just want to confirm if this is also a possible “hacky” solution.

Thanks in advance.

Roblox only checks if a user is “AFK” if they haven’t done any inputs (mouse, keyboard, etc.) for the past 20 minutes, which is why people use autoclickers or macros to constantly reset the timer.

Other posts

How to 'bypass' the AFK Kick system? - #2 by Scottifly
Disable AFK Kicking - #5 by The_Mipening
Prevent AFK timeout - #2 by buildthomas

1 Like

Meaning, no, LoadCharacterAsync() does not work; the only (known) way to prevent AFK timeouts is with teleports.

1 Like

Actually, I just found this:
UserInputService:CreateVirtualInput(): creates a VirtualInput object for simulating key/mouse input. This may do something if you simulate an unused key press whenever Player.Idled fires:

local uis = game:GetService('UserInputService')
local players = game:GetService('Players')

local plr = players.LocalPlayer
local virtualInput = uis:CreateVirtualInput()

plr.Idled:Connect(function()
    task.wait()

    virtualInput:SendKey(true, Enum.KeyCode.KeypadMultiply, false)

    task.wait()

    virtualInput:SendKey(false, Enum.KeyCode.KeypadMultiply, false)
end)

Though, I’m not sure if this actually works. Requires testing.