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

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

Asked by 5 years ago

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?

0
Also, spelling? RiskoZoSlovenska 378 — 5y
0
I do not understand even the question. SpiralRBX 224 — 5y

1 answer

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

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

Answer this question