You really shouldn’t use Humanoid:LoadAnimation() anymore. It got deprecated.
Humanoid:LoadAnimation()
Here’s the post, you should follow.
And use task.wait(amount) instead of wait(amount). It’s an improved version.
task.wait(amount)
wait(amount)
Here’s the link to the post.