How do I switch a ceiling fan to a regular light fixture?
In this case black are permanent live, red is switched live and white is neutral (common). Bare copper is PE.

Just connect the light fixture black (from the fixture) to the red, then pigtail the other blacks together, then pigtail the whites togeter with the one that will come from the new fixture.

Also connect the bare copper to the PE connector (if not class II) on the new fixture