Color isn't assigning properly

Whenever I want to assign to a 3d text in my scene, for example red, it changes only into black. None of my attempts to get this running worked.

Here’s my Line Of Code:
renderer.material.color = Color.green;

What can I do to finally change it to red (during play)? The Texts base color is green by the way.

Hi, you can try this for a 3DText :

//it's UnityScript (JS) 
var txt : TextMesh;

function Start () {
	txt.color = Color.red;
}