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

How to Detect is user doesn't have the Roblox Client Seletced?

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?

2 comments

0

Also, spelling?

0

I do not understand even the question.

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.