Animation not playing. (NPC idle animation)

You should try setting the animationTrack’s Looped method first before playing.
Also, the LoadAnimation method of humanoid is deprecated. More information: Deprecating LoadAnimation on Humanoid and AnimationController