Hello i am trying to play an idle animation for my Npc. It wont seem to work. All parts of the Npc are not anchored and the Npc does have a humanoid and my animation is not corrupted and works just fine, its just the animation wont work for my Npc for some reason. I don’t know what this reason is.
Script
local animation = script:WaitForChild(“idle”)
local humanoid = script.Parent
local idle = humanoid:LoadAnimation(animation)
First of all, please indent your code to make it easier to read. Also, is your animation called idle? I honestly would do
local animation = script:WaitForChild(“idle”)
I would change that to
local animation = “Npc Name here”.Character.Humanoid:LoadAnimation(animation)
because the spawns are in 8 diffrent places around my map and thanks, also ive noticed that when the npc dies and respawns the animation starts playing, only once tho
local animation = script:WaitForChild(‘Animation’)
local humanoid = script.Parent:WaitForChild(‘Humanoid’)
local dancer = humanoid:LoadAnimation(animation)