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 7 years ago
Edited 7 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.

local walk = PARENT.Animation
local controller = PARENT.AnimationController
local animTrack = controller:LoadAnimation(walk)

if not animTrack.IsPlaying then
    print("test") --Will print once, because it hasn't played yet, animation is looping.
    animTrack:Play()
end

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:

local walk = HUM:LoadAnimation(game.ReplicatedStorage.Animations.Walk)

if not walk.IsPlaying then
    walk:Play()
end

--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 — 7y

Answer this question