Can't add script - not finished compiling yet

I’m trying to follow the introduction notes on scripting and have created the script

function Update () {
Transform.Rotate(0, 5*Time.deltaTime,0);
}

When dragging it to an object it puts up an error message saying

“Can’t add script, script “RotateY” has not finished compiling yet”.

Thanks.

Wait a little bit, then try again. If that does not work restart Unity. If that does not work try restarting your computer! :slight_smile:

Thanks, I re-created the script and then it worked. I then realised the working one is transform.Rotate rather than Transform.Rotate which I’m assuming was the problem!