#Animation not loading

2 messages · Page 1 of 1 (latest)

vagrant tapir
#
function module.Spawn(Npc)
    local Humanoid = Npc:WaitForChild("Humanoid")
    local Animator = Humanoid.Animator
    local Animation = Npc.Animation
    local Walk = Animator:LoadAnimation(Animation)

all the useless parts have been removed. The output gives me the error Cannot load the AnimationClipProvider Service. and i don't know any fixes to this. I am loading the default roblox walk animation on an npc which works in another script but not in this module script. Please help!

versed nymph
#

Did you define NPC? If so, the error might be caused by the NPC not loaded in. You can use :WaitForChild(). That might fix the issue.