Can't add script component because the script class cannot be found, Anyone know how to fix this?

Hi, I’ve tried all the YouTube videos and i still get the same error. I’ve checked and changed the names to the same and i still can’t get past this How could i fix this? - YouTube

  1. Try deleting and creating the script again.
  2. Check for compile errors / code errors
  3. Try creating another script with a different class/file name and check if that works instead

Note: new to unity - just trying to help…

found something similar:
unity3d - Make sure that there are no compile errors and that the file name and class name match - Stack Overflow