NPC Animation Not Working on Client Side

I’m working on an NPC Monster, which has a custom run and idle animation. The problem is that the run animation refuses to load on the client side, but works perfectly on the server side. Weirdly enough, the idle animation works perfectly fine on both ends. Heres a video demonstrating the issue:

At first I thought it was just lag, so I tested in in-game, but the problem still shows. I’ve tried checking the animation priorities, changed the animation script, and I still can’t seem to figure out what’s going on. I’ve looked at other issues on the Dev Hub but they weren’t the same problem that I have.

Any help will be greatly appreciated!

How did you make the script exactly and where did you put it?

1 Like

I put the animation script in the model, like I’ve done with previous NPC’s. For some reason it just doesn’t work with this project, unless Roblox has changed something to do with how animations are loaded.

MonsterModel

Can you take the screenshot of you code too? it might help figuring the problem

You can’t have the same Animation Id’s, so you must change each and one of them if they’re the same.

2 Likes

This is not the case we can clearly see the animation did play on server side

Lemme know if you need to see any other part of the script.

Edit: Nvm, I seem to have fixed it somehow

Oh i see. I have never seen if this script is actually work for npc.
But anyway i recommend you to use this Animate instead:
https://create.roblox.com/marketplace/asset/7640193665/Animate2
This is support both for npcs and players and can change animation easily anytime you want.
You can try this and if you got any problem you can ask

1 Like

Yeah, that’s probably for the best, I know the default script is pretty laggy at times so I’ll give this new one a try. Thanks for the help, though!

1 Like

I changed the walking animation to something different, and it seems to be working now. May I ask why using the same animation ID for running and walking stops it from being loaded?

1 Like

I’m actually not really sure, but I’m guessing it has to do with overlapping animations. Like it can’t handle playing two of the same animation id’s, so as a result only the server plays one animation clip and the other doesn’t show on the client. I only know this because it’s a common problem that sometimes happens in my games.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.