Hide GameObject after script has finished executing?

I’ve just started Unity so I’m new to this.
I have GUI Text on the screen that is a component of GameObject. I’m using a script component that Auto types the text.
I’d like it so that after the text has finished typing, the text (so I’m guessing GameObject) is hidden?

This is my script for Auto type

var letterPause = 0.2;
var sound : AudioClip;
private var word;
function Start () {
	word = GetComponent.<GUIText>().text;
	GetComponent.<GUIText>().text = "";
	TypeText ();
function TypeText () {
	for (var letter in word.ToCharArray()) {
		GetComponent.<GUIText>().text += letter;
		if (sound)
			GetComponent.<AudioSource>().PlayOneShot (sound);
		yield WaitForSeconds (letterPause);


To hide the GameObject:


Alternatively, you can disable the GUIText:

 GetComponent.<GUIText>().enabled = false;

@Jessespike Thanks for answering. How can I tell the game to wait until after the text has finished writing before hiding/disabling it? If I add it at the end of the code it simply stops immediately after being executed.
Apologises this is probably a stupid question, again I’m still trying to get the hang of things.