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

How to detect if a part is in a player's view? [UNANSWERED]

What would be the best method to determine if a part is fully in a player's view/camera? Such as a player looked at a door and it opened. Would it need to be a local script, or can you do such a thing server side too?

Much appreciated.

1 comment

0

You could possibly use Raycasting, but I'm not sure about this.

1 answer

Er, you'd have to do some trigonometry to determine the sight range of a player, then if the part is in a certain angular area from the player. I have no idea how to put it into practise, though.

1 comment

0

I know there used to be a guide somewhere on the topic, I think it was LuaLearners, but it shut down. Thanks anyways!

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