Making NPCs do ROBLOX emotes

Hey scripters; this is probably an easy fix of some sort, but trust me when I say, I’m absolutely no scripter.

What do you want to achieve?
I want to enable NPCs spawned in - with AlreadyPro’s avatar loader plugin - who are preferably in R15 to be able to do ROBLOX emotes on the catalog, such as side to side or godlike.

What is the issue?
I’ve scanned a multitude of articles and tried so many alternating scripts, and yet none of them work. I’ve came to the realization that most require an AnimationController within the NPC’s model, which I have:

NPC's model

The script I presume is most useful was the following. I presume I put the script in SeverScriptService?

Script
local anim = Instance.new("Animation")
anim.AnimationId = "https://www.roblox.com/catalog/3762641826/Side-to-Side"

local controller = ... -- path to Humanoid/AnimationController
controller:LoadAnimation(anim):Play()

When doing the above method (which probably contains a petty mistake), the NPC just goes bald:
image

If you know how to fix this, please do help because I’m a lost cause out here, trying to script lol.

5 Likes

You can’t use other peoples animations inside studio. Altough it does work in-game (i think you can do animations of roblox). Instead of using the URL use the URL using the rbxassetid:// protocol

From what i remember, when using the “https://www.roblox.com/catalog/Id/” “Protocol”, it will automatically convert itself into the rbxassetid:// “Protocol”, and even if it doesn’t, i honestly think it will work.

It only automatically changes if you use properties

Used an assetID for the side to side emote, still had the same issue with the animation not playing and the NPC just going bald.

Updated script with assetID

image

1 Like

Try using Roblox’s Rig Builder, or Moon Animator’s Character Inserter.