Hi!
I am not very experienced with unity but this is what I know…
Legacy is the way that animations where managed in previous versions. You can select your model in the project hierarchy and you will see the Import Settings on the inspector.
There, if you go to Rig, you can select Legacy in Animation Type. Then your animations on the model will be handled as in previous versions of unity and you will be able to play them the way you are trying.
Step one: Type so it’s easier to read, without the caps here and there (and the shorthand as well). Also, giving more information would help.
Now then, I have very little idea what your issue is because you gave very little information.
First, make sure you did these: 1 Animation
Create the animation in the appropriate way (inside or outside of Unity doesn’t matter, although Legacy/Generic type matters for this)
Attach an Animation component to the object (typically imported objects with an animation once marked “Legacy” under “Rig” have this automatically)
For the first field next to “Animation”, drag your clip onto that field if you’re clip isn’t there
Use Animation.Play() in your code to play it (or test it by checking “Play Automatically”
Now, you didn’t even give an error so I don’t even know what’s happening. If it’s a Generic-Legacy animation type, it would have given you an error, or at least a warning,.