How to test if a player is looking at a part. And how to remove parts from being walls

I believe this is done by Dot product take a look at this Dot Product