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

[SOLVED] NPC Animation via Animation Controller broken?

Asked by 8 years ago
Edited 8 years ago

NOTE: Is being played from a Script, all instances are already created, creating them doesn't work nor does using Humanoid:LoadAnimation() from a LocalScript/Script.

1local walk = PARENT.Animation
2local controller = PARENT.AnimationController
3local animTrack = controller:LoadAnimation(walk)
4 
5if not animTrack.IsPlaying then
6    print("test") --Will print once, because it hasn't played yet, animation is looping.
7    animTrack:Play()
8end

I've noticed this doesn't work on NPC's is there another way to get them to play animations as I'd love to not have to use CFrame.Angles() with weld to "tween" the parts. Not only is this a problem on my game I've seen it across many others, apparently an issue on RBLX's side, does anyone know a way around it?

EDIT:

1local walk = HUM:LoadAnimation(game.ReplicatedStorage.Animations.Walk)
2 
3if not walk.IsPlaying then
4    walk:Play()
5end
6 
7--Animation Hierarchy: game.ReplicatedStorage -> Animations - Folder -> Animation - "Walk"
0
Yea, roblox broke animating NPC's via animation controller I think. I've been looking for a way around this too. StoIid 364 — 8y

Answer this question