I'm making a interviewing place and I want to make sure the people who are being interviewed aren't clicking off to cheat anywhere. I've seen something like this done in Voidacity's Script Builder Place 2 where if you click off the client, you have a AFK frame over your head. Can anybody help me?
✓ ANSWER ACCEPTED
How to Detect is user doesn't have the Roblox Client Seletced?
1 answer
✓ Accepted answer
I don't think there is a way to detect if a player has clicked off their Roblox window, but try
--ServerScript
local players = game.Players
local function onPlayerAdded(player)
local function onPlayerIdle()
--Do the AFK thing
end
player.Idled:Connect(onPlayerIdle)
end
players.PlayerAdded:Connect(onPlayerAdded)
This should call your function after the player has been AFK for roughtly two minutes.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Also, spelling?
I do not understand even the question.