Problems with animations

Hello, i need some help with animation:
I have object X(its fps camera) and object Y (that is the object i want to be animated)
i created an animator object , added animator component on it, dragged things into the animator , and animation into object Y. My question is what else should i do? Because now it looks like the bool i have in script triggers the bool in the animator but this does not trigger the animation. if you know what causes it please give me some advices

did you set the parameters correctly ?

yes i think so
also this is the part of code that is on the animator

 private Animator animation;
if (Input.GetMouseButton(0))
        {
          
           animation.SetBool("isAttacking",true);
       
        }

and as i said this sets bool to true but the animation… not working