Animation not playing when first loading into the game

Ive been writing a backend for practice and I seem to get this bug where the animation wont load when entering the game. I have tried reuploading the animation and playing it on both the client and server. Theres no errors in the output, it just doesnt play.

Here are some snippets of the code

image
image

The OnPlayerAdded function is being called on the server.

Please help…

Humanoid:LoadAnimation() is deprecated, use Animator:LoadAnimation() instead. Moreover, it’s best practice to play animations in the client.

thanks for the tip, but that doesnt solve my problem…

Can I see how the animation track looks like in the explorer?

is this what you mean?
image

also i did a bit of troubleshooting and i think it might be because of how early im playing the animation (on character added). perhaps the animate script is overriding it somehow?