The more lightbulbs the more wires. The fixture box you are referring to has one 2 wire cable providing the line or power in two 2 wire cables that take power to other locations and one 2 wire that is used for the switch which explains why you see a white wire attached to the other black wires.
![How To Wire A Light Switch 3 Way Switch Wiring Guide](https://www.homeadvisor.com/r/wp-content/uploads/2016/05/light-switch-767749_640-634x419.jpg)
How To Wire A Light Switch 3 Way Switch Wiring Guide
2 black and 2 white wires in ceiling box. Assuming you have 2 wall switches in the room the two whites go together with the white on the fan. But the junction box in another room has a pair of each and each set 1 black 1 white 1 copper. Black means hot white signifies neutral and green indicates ground. The white wire is your neutral wire the copper wire is the grounded wire and the black wire powers the fan. Each lightbulb socket must have a separate black and white wire to supply electricity to the lightbulb. Take the two blacks and wire nut them together with a pigtail.
Connect the two white wires from the light fixture to the white wire located in the electrical box by twisting an orange wire nut onto all three wires. I know that the wires coming out of the junction box should be one black one white and one green or copper. Take your white that is in the same cable as your always hot black and wire nut it with your other white. One of the rooms in my house is like that. Why does my ceiling fan outlet have two black wires two white wires and two copper wires. Its own switch from the fan.
If thats not obvious to you then dont touch it and get a com. There should be a white copper or green and black wire coming out of the ceilings electrical box. Now go up to your light box. The united states has strict codes relating to home wiring including clearly defined colors on the outer casing of the wires. The blue controls the fan separate ie. However if you need to rewire a light switch or a plug socket you may occasionally come across two black wires.
1 black goes to the black on the fan and the other black goes to the blue on the fan. The other set of blackwhite wires in the ceiling box is used to send power through the wall switch from the hotblack wire and back to the light. The white wire of that second set is actually used. Some setups will also have a blue wire which powers the lights on your fan. The pigtail will go to the copper coloured screw on your light. If all youve got is two black wires sticking out off the ceiling or wall then get your multimeter out and see if youve got 240v across the terminals or 110v if youre in usa etc.