Hey!
I’m working on an NPC animation, Here is the script I’m using
local hum = script.Parent:WaitForChild("Humanoid") -- Find the Humanoid
local anim = hum:LoadAnimation(script:FindFirstChildOfClass("Animation")) -- It finds anything inside of the script that is "Animation" and loads it.
anim.Looped = true -- If your animation is not looped, you can loop it like this.
anim:Play()
The animation is a child of the script, The animation is published to a group I own.
Im totaly unsure of why the animation isnt playing? Its set to a idle
(Screenshots of the child/parent)
Thank you so much!