I want to make my NPC move using an emote from the avatar shop but I’m not sure how. I tried searching for answers here, the roblox wikipedia, and on YouTube but I couldn’t find any. Does anyone know how to do this?
Firstly, you need to obtain the Animation Asset Id. You can do this by using the method below, or by using InsertService.
Once you have obtained ID, you can simply load it into your desired CPU using LoadAnimation, and then :Play() it.
AnimationObject = Instance.new("Animation") AnimationObject.AnimationId = "your animation ID from this last step" Animation = Humanoid:LoadAnimation(AnimationObject) Animation:Play()
Hope this helps!
Thank you! This worked perfectly.