how do I add the animations

I am making a custom map with a friend and i have a monster that I need animations for. I have written some code in my tick.mcfunction file wich i think should do what i want. There are Setblock commands as output to start the animations and they work guarenteely in the game, it just doseant do anything.
Continue to help post