animation dont work

hi all i have a problem, when I put play , the animation dont work and i put it in the script and does not work sorry for my bad english , I add some pictures

[25949-sin+título.png|25949]

alt text

help idk what i doing wrong , im stuck here please help

only legacy animations can be play with scripts. you can set it with debug mode

Well, it’s just what it says - you don’t have an animation component on your object.

Take a look at your second picture, there’s an “Add Component” button. You can add you animation component with Add Component → Miscellaneous → Animation

And don’t forget to add your “run” animation in the list of animation clips