I’m trying to make a horror game and I want to detect if the player can see the monster. How would I do this? Any help would be very appreciated!
It's possible. I already made the script because I wanted to know how to do this and someone had a similar Question.
Research WorldToScreenPoint() and GetPartsObscuringTarget()
WorldToScreenPoint() -- This can tell you if a Part is visible(even through walls)
GetPartsObscuringTarget() -- This gives you a Table containing all the parts that is intersecting two given points
If you do it right then you can detect if the monster is in the player's screen. Unless if you want to know if the player is looking directly at the monster then use RayCasting or mouse.Target