How to check if a player can see something?

I’ve tried searching for this and have found Camera:WorldToScreenPoint but I still don’t know how to use it.
Can someone explain how it works with an example?

Help would be appreciated.

I’m pretty sure if you actually googled it, you would’ve known.
It’s pretty straight forward here.


Raycast in a cone from the player’s head in front of them. If it doesn’t hit the part, it can’t be seen.

1 Like

When I was testing it, I was using it in a server script so it would return true no matter what. I’ve figured it out.