local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://0"
for i, v in pairs(workspace.Folder:GetChildren()) do
local animtrack = v.Humanoid:LoadAnimation(animation)
animtrack.Looped = true
v.Humanoid:MoveTo(workspace.Part.Position)
animtrack:Play()
print("Started")
v.Humanoid.MoveToFinished:wait()
animtrack:Stop()
print("Ended")
end
Yes, in general, you will need to make sure the NPC is playing the animation manually.
The animtrack.Looped makes sure that the animation keeps playing once it starts unless stopped.
You yourself / ROBLOX must have created the animation or else it will not work