How can I see if a player is looking at a created actor?

It doesn’t work for me help!