How do I make an object disappear when you look at it

I’m making a horror game and I want an enity/object to disappear when you look at it

Make a script using this function and place it on the object.

Raycast & Destroy; please search/read doc references