Cant add script to Hierarchy

Hi,
when i add the last two javascript to anything in my hierarchy from the project panel, unity gives me an error

" Can’t add script Script NewBehaviourScript has not finished compilation yet. Please wait until compilation of the script has finished and try again."

And of course if i try to do Component | Scripts|…but I cant find the script I created.

Ive checked all errors and I have none in those scripts that are not registering- actually one of the scripts I have got errors in are registering in the top down menu under scripts.

I can’t work it out!!!,

Cheers,

lani

You won’t be able to add any components till ALL errors are fixed.

Thanks, The thing is, there is no errors in these 2 scripts so they should come up in in the menu under scripts under component, right? The other way of tlinking the script is to drag and drop it but it wont allow me to due to it’s error message stating it hasn’t finished compiling…Is there anything else that it could be?
Cheers,
lani

Select all code, paste it in an empty text file. After this remove the script that started to cause trouble (for whatever reason) and make a new one and paste back in the code and save it. Also, don’t forget to rename your script, I’ve had this error before when I used the default NewBehaviourScript as a name.

If anyone else has this problem… Make sure to solve all of the compiler errors first