Simple Color Question

Why can i not change the color of any of my objects?
I have no idea how to just simply make it a different color and the closest i have gotten makes it change almost every object in the scene change color.

Color class: Color.red (Example).

transform.renderer.material.color = Color.red;

W/e object that has this line in the function Awake() will change the base color to red.

More info:

http://unity3d.com/support/documentation/ScriptReference/Color.html

http://unity3d.com/support/documentation/ScriptReference/Renderer-material.html

Good night!