How would I go about doing this? I know about a set delay, but how to detect when the player ins't moving at all?
COMMUNITY QUESTION
How would I go about making a GUI pop up when a person is afk?
1 answer
LocalScript
local player = game.Players.LocalPlayer
player.Idled:Connect(function(time)
print(time.." Seconds | AFK")
end)
From my experience, the code runs a little after 2 minutes of being idled.
You can use the Idled event which is part of the local player. And when you call the event it will run what ever is inside of it, so that's where you can pop the gui up.
Hope this helped!
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
This isn't a request site. Try making the script and posting it here if it doesn't work.
Okay, I will try it out
It is okay to look for guidance in concepts on this website. He wasn't asking for a script, he was asking for how he might go about doing this.
https://developer.roblox.com/en-us/api-reference/event/Player/Idled