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

What is the best way to make a NPC's "Line Of Sight" or "Field of View" or "Vision" ?

What is the best and optimized way to know if a NPC can see a player or not?

(Multiple players)

Raycasting? Region3?

1 answer

Yes, use raycasting to detect if a player is in view of a NPC.

1 comment

0

How would you use Raycasting?

This discussion is preserved as it was. New answers, comments, and votes are closed.