I just had this problem with the Junior Programmer: Create with Code 2, Unit 5 Step 2. I tried renaming the script to another name and then renaming it back, but that still did not work. I then saved the project, closed it and re-opened the project. When I clicked Add Component on the object, the script appeared and I was able to add the script to the object.