Ceiling Light Wiring

Solution
So pretty much trial and error and I somehow managed to get it working, here's how its wired...

-White (light) to White box.
-Green (light) to Copper box (ground).
-Black (light) to Red box.
-Black (box) to Black box.

Thanks everyone for your help, hopefully this will help someone else going from a ceiling fan to light.
How did you control the ceiling fan turning on/off while it was there? By a wall switch or pull chain on the fan? If by wall switch, is there more than 1 wall switch that controls that junction box? The existence of a red wire "could" indicate that it is a "traveler" wire, connecting 2 wall switches, although there is no universal standard.
 
The black wires are power, the red wire is usually power from another switch, white is neutral and bare copper or green is ground. One of the black wires might be hot all the time and the second black wire might be switched. The red wire should be switched too. With a meter check black to white, second black to white, red to white before and after toggling switches to determine which one controls which wire. Install a wire nut on each wire that isn't used. The Red wire is another black (hot) wire that is switched.

Based on your response: Switch the breaker off. Check wires to make sure they aren't hot. Connect a wire nut to each black wire separately. Connect the red wire to the light black wire. Connect the white to white and copper to ground.
 
Good Idea with the electrical tape. I have a situation with 2 wall switches controlling some external and internal lights that I have on a timer (known as a 3 way switch), that I have to figure out the wiring. There was a segment on "Ask This Old House" that covered the same situation that I will have to re-visit.