Chosen Solution

I got a new phone screen and replayed it just fine. The only problem was the camera sent with the screen doesn’t work. I tried everything; the camera sent was defective

You can transfer the OEM camera from the old screen to your new screen. This is “best practice” anyway since the OEM small parts tend to be better than the ones that come pre-installed in the screen. The iFixit guide should show instructions for transferring your front camera to the new screen.