Animation Not Loading

I’m new to this, but I was working on an animation, and it came out nicely. I looked up a few tutorials on how to make an NPC perform the animation and followed them closely, but it didn’t work—the animation wasn’t loading. I tried a few other tutorials, but it still wasn’t working. I made sure everything matched the tutorials, but nothing made my animation script work. Here are the scripts I used for the animation:
image_2024-09-21_172031637


image

i made sure i added animation under the script aswell.

1 Like

Are there any errors? If so it could be coming from the misspelling. Instead of writing:

idle: play()
try
idle:Play()

I tried that aswell and theres no animation playing. how do i see errors or would could i go to see them

You will have to use the new method of loading animations.

This is the new way of loading animations:

Example:

tool.Parent:FindFirstChild("Humanoid").Animator:LoadAnimation(animation):Play()

Hope it helps!

Are you sure the code is running? Also, you should use the animator to load the animation instead (like what @RedstoneJJJ said)). Where is this script put and what kind of script is it (local, server)?

well for the scripts it looks like this
image

the animation has the animation that uploaded so i dont think its that.

im trying to have myself do a looping animation and i have the animation ready and i followed a couple of tutorials im not sure if u can suggest how i should do it or the steps to make that happen.


I wanted my character to loop like this throughout my game

The output. Go to view and enable output view.


it shows this is there an error?

Its a warning. It means that the instance ‘idle’ which is supposed to be your animation. Is not in the game and its still waiting for it.

And here is the issue. The script is waiting for the instance called “idle” and there isnt any. Change the animations name under the script to “idle” You can do this under its properties