I’ve used the :LoadAnimation() function many times before, but today I’m not entirely sure why it’s not working. When I test out the script, I get the error below saying attempt to index nil with ‘LoadAnimation()’. If you can help me out I would very much appreciate it, btw, everything is inside a LocalScript.
That shouldn’t be an issue. I’ve turned the humanoid into a variable and it worked. Also, I can clearly see you post. You don’t want to clog up a topic with repeated posts.
Always use :WaitForChild() when getting stuff inside the character. This is because sometimes, the character does not load in properly, therefor causing your script to completely break.
Instead of FindFirstChild(“Humanoid”) use WaitForChild() and see if anything changes.