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?
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.