How To Get Side of a Part Relative to the World

I need a way to figure out, using mouse (I’m making a building system), what side of a part the mouse is hovering over. However, I can’t just use mouse.TargetSurface, because if it is rotated, say a plank of wood is lying flat instead of upright, I need the side facing up to be the top, not the left or something like that. Is there a way to do this, or is there a better way to make the building system? (I need which side the mouse is pointed at to apply an offset and make the part being placed flush with the other)

Try raycasting from Camera to Mouse.Hit.Position