I’m not really sure how to describe my problem so I have created a diagram to explain it. I want to be able to place parts on walls and rotated parts flush with the sides. I presume you would use raycasts and surface normals for this but I am not quite sure.
Thanks for pointing me in the right direction. This has worked for me for the most part. Do you have any idea how I would make these blocks face the other way upon being placed (as shown)