I'm making an ORB in a game and I don't know how to make it so if your camera is in it's line of view, it runs a piece of code. This obviously needs to be Local, not for every player. Thanks!
Example:
Player looks at orb
Code runs
Player looks away from the orb
code stops

5 comments
Do you have to directly look at the orb or just when it's in view?
When it's in view
Camera:GetPartsObscuringTarget might help
Camera:GetPartsObscuringTarget might help
Camera:GetPartsObscuringTarget might help