GetMouseButton script please help

if(Input.GetMouseButton(1)) { animation.Play (“Default Take”); };

I have a problem i cant figure out because there are no errors in the console but when i press right mouse button the animation called “Default Take” doesnt play, anyone have any ideas?

Do you have a collider on the game object that you are clicking on?

Is the script attached to that object as well?