Why does this animation script not work?

Did you know humanoid load animation is deprecated? Use Humanoid.Animator:LoadAnimation() Deprecating LoadAnimation on Humanoid and AnimationController