The front camera assembly consists of a standard front facing camera, an infrared (IR) camera, and a dot projector. These three components are an integral part of Apple's Face ID technology.
The front camera assembly is paired to the logic board so only Apple can replace the assembly and maintain Face ID functionality. If the loss of Face ID is acceptable, then you can use this guide to to replace the front camera.
Mark your opening picks
Tape over any cracks
Anti-Clamp instructions
Screen information
Replace the speaker gasket
Alternative method to unstick the battery from the case
To reassemble your device, follow these instructions in reverse order.