The black parts of a layer mask in Photoshop hide the corresponding areas of the image that the mask is attached to (masking out). The white parts of a layer mask show the corresponding areas of the image the mask is attached to (masking in). So the gray parts of the mask make areas of the image layer translucent to varying degrees based on how dark or light the grays are in the mask.