Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Are animations for non-player characters broken?

Asked by 8 years ago
Edited 8 years ago

The animation is not visible unless I remove the humanoid that's inside of the character. I've also already tried reinstalling studio. Could someone please try and see if it's not just me having this problem? Thanks.

https://youtu.be/2B7HEHX2wus?t=44s In the video, the animation worked only when the humanoid wasn't there. When I added a new humanoid after removing the first, the animation stopped.

0
Could you show the script you used? User#11440 120 — 8y
0
Trust me, there were no errors in the script. I simply loaded the animation into the AnimationController and had the track play. Since you ask though, does it mean that it works perfectly fine for you? Shiro75 0 — 8y
0
Are you loading the Animation from humanoid using Humanoid:LoadAnimation()? connor12260311 383 — 8y

1 answer

Log in to vote
1
Answered by
Validark 1580 Snack Break Moderation Voter
8 years ago

After loading the animation into the AnimationController, yield until all assets are loaded.

local ContentProvider = game:GetService ("ContentProvider")
repeat until wait() and ContentProvider.RequestQueueSize == 0

Hope this helps!

0
Thanks! I'm sorry though. ;~; That really doesn't seem to be the problem. The animation works as long as the humanoid isn't there. Shiro75 0 — 8y
0
Hm. Weird. Just yesterday I was having the same problem and that's how i fixed it. I am running an animationcontroller on an npc that has a humanoid. Check out UristMcSparks' example place Validark 1580 — 8y
0
I edited UristMcSparks' example place by putting in my own animation in the script, but that worked, again, only when the humanoid wasn't in the model. Thanks anyways for trying to help! Shiro75 0 — 8y
0
AnimationControllers ARE messed up, then Validark 1580 — 8y
0
The other day, i ran a simple metatable feature test in the command bar and got two different outputs Validark 1580 — 8y
Ad

Answer this question