If you are AFK for more than 15–20 minutes on Roblox, you will be kicked out of the game. You can only be afk for fewer than 20 minutes; if you are afk for more than 20 minutes, you will be immediately disconnected for being idle for too long. I hope this answers your concern!