Light fixture wiring problems
I am trying to install a light fixture in a bathroom in my house. In the wall there are three white, three black, and one red wire. There is a ceiling vent with a power fan, I tried to wire it the same way the old one was setup and it the circuit blew. Every other way I tried either the fan and light are on the same switch, and the circuit blows or the light is permanently on and the fan doesn't work, or vice versa. Im not sure which the ground wire is, or how to properly install this fixture without losing my mind. Any help or information would be greatly appreciated.
Thank you