change text color

I’m trying to figure out how to change the color of my GuiText at any time I want. Right now this is my code but I must be doing something wrong, I’m not getting any errors though.

var scoreColor : GUIText;

function Start() {

scoreColor.material.color = Color(0.8,0.8,0,1.0);

}

Oh! There is a little problem in your script. You forget only 1 thing. You need to add guiText in front of . material.

scoreColor.guiText.material.color = Color (0.8, 0.8 , 0 , 1.0);

Enjoy!!! :slight_smile: