local squidGameTimer local gamers = {} function OnPlayerConnected(player) if not player:IsRealPlayer() then return end gamers[player] = true end function OnPlayerDisconnected(player) gamers[player] = nil end local function getGamersPos() local gamerPos = {} for gamer, _ in pairs(gamers) do gamerPos[gamer] = gamer:GetAbsOrigin() end return gamerPos end function StartRedLightGreenLight() local lastGamersPos = getGamersPos() squidGameTimer = timer.Create(0.1, function() local gamersPos = getGamersPos() for gamer, pos in pairs(gamersPos) do local lastPos = lastGamersPos[gamer] if lastPos then local distance = pos:Distance(lastPos) if distance >= 0.1 then gamer:Suicide() end end end lastGamersPos = gamersPos end, 0) end function StopRedLightGreenLight() timer.Stop(squidGameTimer) end