why is The refenced script is missing on this behavior? PLEASE HELP I'M NEW

I’m new to unity and I’m trying to make a simple game about a rolling ball (link_to_the_video_that_I_got_the_game_idea:Unity Full Beginner Tutorial 2020 | Make your first game! - YouTube) and is basically a tutorial to the basic of unity but I wanted to amplify the game by making other levels but I’m stuck because I wanted to use a "trashcan again in another level but teleport you to another place, thereforce I think I had to make a different public class but now both level trashcans stop working, first one wasn’t working then I fixed it and now both are not working. Here is the script for trashcan of lvl1:

public class Trashcanlv1: MonoBehaviour
{

private void OnTriggerEnter(Collider other)
{

    if (other.CompareTag("Player"))
    {
        print("YOU LOSE!");

        other.transform.position = new Vector3(40,2, -40);

        other.GetComponent<Rigidbody>().velocity = Vector3.zero; //(0,0,0)
    }

}

}

Here is code for the trashcan lvl3: ( I did not use trashcans for lvl2)

public class Trashcan_lv3 : MonoBehaviour
{

private void OnTriggerEnter(Collider other)
{

    if (other.CompareTag("Player"))
    {
        print("YOU LOSE!");

        other.transform.position = new Vector3(40, 2, -40);

        other.GetComponent<Rigidbody>().velocity = Vector3.zero; //(0,0,0)
    }

}

}

PLEASE HELP

This is not a big problem. Check the GameObject that you are putting this script on and see if there is an error about the script missing. If there is an error, add your script component back to it again and it should work.