why my script isn't working?

the script:

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

public class bird : MonoBehaviour
{

    public Rigidbody myrigidbody;

    // Start is called before the first frame update
    void Start()
    {

    }

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

    }
}

-expected behavior: a myrigidbody option
Imgur: The magic of the Internet
-the error : the assosiated script can not be loaded
please fix any compile errors
and assign a valid script
-a screenshot of the error:
Imgur: The magic of the Internet

MonoBehaviour script class name has to match file name.

2 Likes

You were faster Ryiah :smile:

1 Like

thank you so much