Animation not Playing

Hello! I have a pair of animated hands. When I’m touching water than the swimming animation plays normaly but when I want to swim faster (I have an other aimation) the animation is not playing! Hereis my script:

if(controller.velocity.magnitude > 0 && GetComponent(Swimming).swim == true){
    animation.Play("Swimming");
    	if(Input.GetKey(KeyCode.LeftShift))
    		animation.Play("FastSwimming");

Also I have an other script for the speed change:

	if(swim == true)
		speed = swimSpeed;
			if(Input.GetKey(KeyCode.LeftShift))
				speed = fastSwimSpeed;

Is there a mistake? Please help me! :slight_smile:

well im not familiar with the animation.play mechanics but try this

if(controller.velocity.magnitude > 0 && GetComponent(Swimming).swim == true){
     animation.Play("Swimming");
         if(Input.GetKey(KeyCode.LeftShift))
                 {
                   animation.Stop("Swimming");
                   animation.Play("FastSwimming");
                 }
}

Again not familiar with it.