Think I found the issue! For your animation code, you have:
anim_texture preset1Heada.png preset1Headb.png preset1Headc.png preset1Headb.png, right?
Well, assuming it's going in alphabetical order, it's supposed to be this:
anim_texture preset1Heada.png preset1Headb.png preset1Headc.png preset1Headd.png
The changes that need to be made is in bright red. Change your "b" to a "d" in the fourth section of the script. After trying this, tell me if it worked or not!