I know the question has been asked numerous times

I have checked that the : MonoBehaviour is there and that the class name is the same as the file name. I haven’t even added any code yet. I’m just trying to drag the generic script over to the object and keep getting the message. I’ve deleted it and renamed it several different names even “whatever” and nothing works. I have three other scripts that worked fine.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class hellavu : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}

The name of the script should be “TimeDestroy” but no matter what I name it (after deleting and recreating new script) I get this message. I’ve tried closing unity and reopening it. Nothing is helping and all the posts I read say the same thing.

This is strange. I had tried to just import the Particle System from Standard Assets as that was all I needed but noticed I was getting an error message about the Explosion script with a namespace error. I imported the entire Standard Assets package and now I can create scripts again without that message.