Chosen Solution
I got my iphone screen replaced the rear camera and flash work perfectly fine but the front camera doesnt work at all it’s just a black screen. does anyone know what it could be??
More than likely the front camera was damaged when your phone was repaired. The front camera flex cable has to be removed during repair. The ear speaker and front sensor (turns off screen when you make calls) may still function, but the camera doesnt. I’ve seen this happen before. I’d take it back to where you got it repaired and have them replace the camera.