help with animation

Hi im a huge noob at the animation component in unity
But here’s my problem, i have a decent walking animation for my character, One For Each Leg
But when i put animation.Play(“LeftLegWalking”);
animation.Play(“RightLegWalking”);
In the script and press W, i get this error,

The animation clip ‘RightLegWalking’ used by Animation component ‘RightLeg’ could not be found in the animations list.
And my character keeps his legs moving even when idle.
If anyone could help it would be greatly appreciated

@BloodBTF, you are using unity’s legacy animation system. You need to drag default animation clip in the inspector and need to include all animation clips in the animations array as I posted screenshot below. Try it, it will work.