Animation Troubles

I’m trying to get an animation to play after coming in contact with a collider, but I can’t figure it out, I do have the animator and animation tree all set up.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PunchDummyAnim : MonoBehaviour
{

public GameObject punchDummy;

// Update is called once per frame
void Update()
{

}

private void OnTriggerEnter(Collider other)
{
    if (other.tag == "Punch")
     {
     punchDummy.GetComponent<Animator>().Play("Punched");
     }

}

}

It detects it and the animator is saying that it’s playing, but it’s not

If the animator is saying the “Punched” animation is playing, the the issue likely lies with the animation clip in the “Punched” state.

If you set “Punched” to be the default animation state, does it play correctly? If not, then the animation clip is probably the issue.