apparently null reference in this script?

function Update()
{
GUI.Label(Rect (10,50,20,20) ,“Hello”);
}

Instead of function Update try using function OnGUI . Good luck!