Trouble getting a trigger to activate an animation

Hi, im having trouble getting a trigger i have to play an animation on a chest to open the lid. I have a mesh collider on the "Chest1" and have istrigger ticked and have an animation on it aswell with "Take 001" in the animation slot. Ive also got a rigid body on my "Player" which is the first person controller incase thats the reason it wouldnt play. i want it so that once the "Player" reaches the "Chest1" it would start the animation "Take 001".

I have no idea on scripting made the script im using from some previous guidance. Would appreciate any help in correcting this.

Thanks in advance

function OnTriggerEnter (Player : Collider) {
animation.Play("Take 001");
}

Took me most of today to figure this one out. When you are importing basic (non-rigged) animations from max, you need to make sure they are checked as ‘legacy’ on the importer in unity (you can find this under the ‘rig’ tab in the importer).

When I did this your script worked.

  function OnTriggerEnter (Player : Collider) {
    print("test");
    animation.Play("Take 001");
  }

This'll print something in the Log.

Comment back and I'll help as much as I can, but off to bed for me, I'll reply in ~8-9 hours.

But tell me if this does or doesn't print Test when you enter the trigger.

Thanks!