Its simple. What I wish to do is run function when player looks away from a part.
I would use WorldToScreenPoint() to accomplish this. Note that it only detects the middle of the part, but looking up something for that should work. A code example would be:
1 | local pos, vis = workspace.CurrentCamera:WorldToScreenPoint(workspace.YourPartName.Position) |
2 |
3 | print (vis) |
Hope this helps!