
775 Views
60 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
This is just a simple script I made to check if anybody is looking at you
-- Player Vision Detection System
-- Detects when other players can see you (no walls blocking)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer
-- Configuration
local FOV_ANGLE = 90 -- Field of view in degrees (half angle, so total is 180°)
local MAX_VISION_DISTANCE = 100 -- Maximum distance they can see
local SCAN_INTERVAL = 0.1 -- How often to check (seconds)
local VISUALIZE = true -- Show debug visualization
-- Convert degrees to radians
local FOV_RADIANS = math.rad(FOV_ANGLE)
-- Store players who can currently see you
local playersWhoSeeYou = {}
-- Create GUI for displaying who sees you
local function createGUI()
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "VisionDetectorGUI"
screenGui.ResetOnSpawn = false
screenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 250, 0, 300)
frame.Position = UDim2.new(1, -260, 0, 10)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BackgroundTransparency = 0.3
frame.BorderSizePixel = 0
frame.Parent = screenGui
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 8)
corner.Parent = frame
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, -20, 0, 30)










"I made" 💔💔
@vxsty *ai made*
This just checks if they are facing you, not looking at you.
AI