How do I make something where if your camera looks at an object, a line of code runs?

Don’t know how to do that and it detects it through a wall which renders it useless :frowning: