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.
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.
Meaning, no, LoadCharacterAsync() does not work; the only (known) way to prevent AFK timeouts is with teleports.
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.