I just can NOT play an animation!

Hello, honestly I just feel like throwing my hands up in the air. I just CAN NOT seem to play an animation.

Here’s what I’ve done so far.

I’ve made the animation. I then created an animation component in the thing I want to be animating. I put the animation in the animation component. I made script that should be able to play the animation that goes as follows

GetComponent().Play ();

That didn’t work, so I set the animation to legacy.

still doesn’t work.

I’ve gone through countless forum posts and youtube videos, but the only one that I found was explained well was in JAVASCRIPT!! Well, anyways, if someone could please just help me with this irritating problem, I would be SO, SO greatful!

add your animation clip in element list