Short and simple. I have an NPC (skinned mesh). It follows the player ands kills them on contact. Problem is, it isn’t playing any animations. It has a walk, a run, and an idle animation, but it just stays in it’s original pose and does this sort of evasive movement while chasing. I assume the strange movements are something to do with the HumanoidRootPart and collisions, but I’m not sure why the animations won’t play. Any help would be greatly appreciated.
Since you didn’t provide any screenshots or video recordings of the model, ill try and give some outsider help.
Could either be 4 things,
-
Are the animations owned by you? Animations that aren’t in your library will not play at all.
-
Are the animation IDs typed in correctly? Are there any spaces or was there a typo?
-
Did you paste the number in both the “AnimationID” value and the “Animate” script itself?
-
You used a broken free model.
Your problem is very vague, so providing screenshots of the inside of your player and the gameplay would be helpful for future reference.
The only one of those problems it could be is #4. I’m using a few NPC scripts from another skinned mesh npc on the toolbox. (I’m doing this cause I’m not very good at scripting stuff like that, and there’s not many tutorials about this) I can send a few screenshots in a minute.
Here is the NPC (gray box is the rootpart)
That’s the video of the strange movements. The NPC has no problem chasing the player (other than movements) but it cannot wander around. The NPC I got the scripts from in the toolbox moved and worked fine, but this one doesn’t.
Hierarchy:
It would be pretty helpful if you would check how it was made in the free model and try implementing the same things in your own model.