Enemy Animations help

Hi, currently I am making a game as which you play as a velociraptor in a dinosaur world. I am really dedicated for this game to be complete but I have run into some problems. I don’t know how to add animations into scripts so they play so I will need some help with that. If you want to help post a script here (Preferably Java Script) you can. It would help me a lot to achieve my dream if you guys help me with the scripts.

Ok, so go to your dinosaur that you want to animate.
Then, go to Component, Mischellaneous and click on the animation component.
Drag your dinosaur animation to the empty slot.
Then, (I only know c#, but I’ll give it my best try in java)

animation.Play(“Animation name goes here”);
animation[“Animation name goes here too”].blendMode = AnimationBlendMode.Additive;

So, this plays the animation so it adds onto the transform.
I hope it works! To be honest, I haven’t used it yet.

I get an error that says BCE0044 : expecting “”. Found ‘\r’
you can give it in c# it will be fine.