Animation not playing

Have you checked if maybe the animation ID is empty or the animation itself

and Id use hum:LoadAnimation(anim) instead of hum.Animator:LoadAnimation(anim) because referencing animator directly is said to be deprecated as shown here Deprecating LoadAnimation on Humanoid and AnimationController

lastly, you know your code best, I can only do so much to attempt to help you in this case.