Cant set animation to legacy

I just recently learned about importing characters with textures and animations into unity. Everything is working fine at the start, animations imported, but then I try to use a script to call these animations just for tests.

public class NewBehaviourScript : MonoBehaviour {
    public GameObject roblock;
	void Start () {
        roblock.GetComponent<Animation>().Play();
	}
	
	// Update is called once per frame
	void Update () {
		
	}
}

Really basic, ran into the “Must be legacy” issue, and I cant get past it. I followed what another answer said to do, but I can’t because it’s all greyed out.
97310-greyedout.png

:confused: Any help?

what were the other answers? did you first select the animated object in the project folder ( not in scene) and in the inspector change the Rig to legacy? This automatically gives the object the Animation component and changes the animations imported with it to Legacy. I just did this to an object I imported that I was using the Animator component. All I did was change the Rig type and add the animations the Animation component Unity automatically added

107171-legacy.jpg

Hey I know this is a late reply but maybe someone else might need the answer.
before you go in “debug” mode you have to click “edit” on the animation and then go in to “debug”
You then head to .Rig. Animation Type. Legacy

I have same issue, i feel like all the assets i bought are no good.

I know this is late, but you need to Duplicate the animation and then you can edit the inspector properties.