Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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?

0
This isn't a request site. Try making the script and posting it here if it doesn't work. youtubemasterWOW 2741 — 4y
0
Okay, I will try it out robloxgamer20162016 0 — 4y
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. IStarConquestI 414 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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!

Ad

Answer this question