Why is my play animation function not working

Godot Version

4.7.1

Question

i dont understand the errors that are popping up or why this isnt allowing me to get back to moving my character, any help would be appreciated i am still very new and learning gdscript

You have indented too much. Typically new functions with func should be written all the way to the left, without any tabs at the beginning.