I wanted to learn how to play animations on NPC characters. As a joke, I made a wacky rthro animation to play on the rthro rig. I created the animation with the animation editor and uploaded it to roblox, so I know the animation ID. I've been trying to figure out how to play the animation in the rig, and I have run into a few issues:
I don't know how many scripts I need. Do I need one for loading and one for playing?
I don't where to put the script(s). In the humanoid? The grouping?
By the way I tried using the wiki and it just doesn't answer those questions (or I am reading it wrong).

4 comments
You could do all this in one local script that's under the Player instance. So like StarterPlayerScripts. Next is when should the animation be played. When player walks? Keyboard input? Also which article have you read from the wiki?
I'm trying to play this in an NPC. A generated rig. Not the player itself.
You could use the AnimationController object to load animations to a NPC without a Humanoid. See this article as it has example code: https://developer.roblox.com/articles/using-animations-in-games
Will it work if the rig has a humanoid?