Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I go about making a GUI pop up when a person is afk?

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?

4 comments

0

This isn't a request site. Try making the script and posting it here if it doesn't work.

0

Okay, I will try it out

0

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.

1 answer

Example

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.