Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Playing an Animation on a Generated Rig?

Asked by 5 years ago
Edited 5 years ago

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).

0
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? xPolarium 1388 — 5y
0
I'm trying to play this in an NPC. A generated rig. Not the player itself. ZeroNoey 19 — 5y
0
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 xPolarium 1388 — 5y
0
Will it work if the rig has a humanoid? ZeroNoey 19 — 5y

Answer this question