Animation not playinh

Godot Version

Godot 4.2.2


I am attempting to run some code that will play a first-person animation when I click the mouse. There are no errors, but the animation is not playing. What am I doing wrong?

func melee():
if Input.is_action_just_pressed(“mop attack”):
if not melee_anim.is_playing():“mop attack”)
melee_anim.queue(“mop return”)

When is the “meele” function called?

because you are calling 2 animations at the same time

Thank you! This solved the problem.