GuiText Manipulation problems

Ok so I have this guiText object and I am trying to assign its value to the characters name that is a string usgin a function like this

function SetName()
{
	playerName.text = charaterName;
}

I declared the guiText in the js script like this

var playerName : GUIText;

and the character name like this:

var charaterName = "Mavrick"; //name of charater

But it does not work but it does not give me an error either, so what am I doig wrong here?
Thanks for any help:)

What do you mean it doesn’t work? Is the text visible but not changing to the proper value, or is it not visible at all?

Make sure the GUIText is visible on the screen, it uses the x,y coords but interprets them in screen space, 0.0 to 1.0. Try setting the transform’s position (the transform where your GUIText is attached to) to 0.5, 0.5, 0.

I placed it where it will be visable by giveing it a name in the Unity gui under text variable for the object. So i know I can see it and move it where I want it to be, but i think its not assigning the right value from the js script. So I guese its not changing to the right value.