Animations Not Working Properly

Half the animations I made won’t play and the ones that do don’t even play at the right times. I know it’s an issue with the animation priorities but I don’t know which ones to set them to.

the script used for loading the animations is the one Roblox provides.

I fixed it. everything works perfectly.