I’m trying to make a system that teleports players to another place, which then teleports them back, if they’re afk for 20 minutes, so that they don’t get kicked. For starters, I need a way to detect if a player has been afk for that long, however, neither userinputservice or player.idled seem to be working. Is there some other way I could see if a player is afk? I know you could determine if the Roblox window is not in focus, but in most cases players aren’t afk because they’re looking at another tab.
How is player.idled not working?
player.idled will also pass in a double that includes the amount of seconds the user has been afk for. If the variable that is returned is more than lets say 19 * 60 then you could teleport them and such.
1 Like
Player.Idled should work. Are you sure you’re using it in a localscript, and you’re using it correctly?