Animation on NPC isn't playing

The NPC is just a R15 Block Rig Dummy made from Build Rig with it’s HumanoidRootPart.Anchored set to False. I’m trying to play the wave emote animation on it but it isn’t playing at all. Here’s my server script:

local human = workspace:WaitForChild("Dummy"):WaitForChild("Humanoid")
local animationId = 3576686446
local Animation = Instance.new("Animation")
Animation.AnimationId = ("rbxassetid://%d"):format(animationId)
local AnimationTrack = human:LoadAnimation(Animation)
AnimationTrack.Looped = true
AnimationTrack:Play()

Is this an animation you created yourself?

1 Like

any errors it gives?
why don’t you put the animation id like this:

Animation.AnimationId = "rbxassetid://3576686446"
local npc = workspace:WaitForChild('Dummy')
local humanoid = npc.Humanoid

local animationId = 3576686446
local animation = Instance.new('Animation')
animation.AnimationId = 'rbxassetid://'..animationId

local animationTrack = humanoid:LoadAnimation(animation)
animationTrack.Looped = true
animationTrack:Play()
1 Like

No, the animation is a the roblox wave emote.

No errors, tried that and it also doesn’t play.

This doesn’t work either.

Swap the animation Id in my script for this; 507770239

This is the animation that’s loaded by default on everyone’s character in all r15 games.

2 Likes

Yay, this works! But I’m wondering why the other wave animation that I took from the avatar shop wouldn’t work. Perhaps because it’s a R6 animation?.
If this is the case, do anyone know where to find R15 emote animations? Or all of them R6 and I have to make my own?

You can’t load catalog items using LoadAnimation(), you’re required to load an Animation, for example:
R15Wave - Roblox

1 Like

Oh, no wonder all of them didn’t work. Thanks for telling me!

Sorry for disturbing you again but how did you find this link? Is there a section in the website dedicated for finding animations?

Usually, you’d be advised to create your own animations and upload them, and that would be the case for the majority of animations you’d use in your game. However, some animations that are uploaded from roblox can be listed here;

local animNames = { 
	idle = 	{	
				{ id = "http://www.roblox.com/asset/?id=507766666", weight = 1 },
				{ id = "http://www.roblox.com/asset/?id=507766951", weight = 1 },
				{ id = "http://www.roblox.com/asset/?id=507766388", weight = 9 }
			},
	walk = 	{ 	
				{ id = "http://www.roblox.com/asset/?id=507777826", weight = 10 } 
			}, 
	run = 	{
				{ id = "http://www.roblox.com/asset/?id=507767714", weight = 10 } 
			}, 
	swim = 	{
				{ id = "http://www.roblox.com/asset/?id=507784897", weight = 10 } 
			}, 
	swimidle = 	{
				{ id = "http://www.roblox.com/asset/?id=507785072", weight = 10 } 
			}, 
	jump = 	{
				{ id = "http://www.roblox.com/asset/?id=507765000", weight = 10 } 
			}, 
	fall = 	{
				{ id = "http://www.roblox.com/asset/?id=507767968", weight = 10 } 
			}, 
	climb = {
				{ id = "http://www.roblox.com/asset/?id=507765644", weight = 10 } 
			}, 
	sit = 	{
				{ id = "http://www.roblox.com/asset/?id=507768133", weight = 10 } 
			},	
	toolnone = {
				{ id = "http://www.roblox.com/asset/?id=507768375", weight = 10 } 
			},
	toolslash = {
				{ id = "http://www.roblox.com/asset/?id=522635514", weight = 10 } 
			},
	toollunge = {
				{ id = "http://www.roblox.com/asset/?id=522638767", weight = 10 } 
			},
	wave = {
				{ id = "http://www.roblox.com/asset/?id=507770239", weight = 10 } 
			},
	point = {
				{ id = "http://www.roblox.com/asset/?id=507770453", weight = 10 } 
			},
	dance = {
				{ id = "http://www.roblox.com/asset/?id=507771019", weight = 10 }, 
				{ id = "http://www.roblox.com/asset/?id=507771955", weight = 10 }, 
				{ id = "http://www.roblox.com/asset/?id=507772104", weight = 10 } 
			},
	dance2 = {
				{ id = "http://www.roblox.com/asset/?id=507776043", weight = 10 }, 
				{ id = "http://www.roblox.com/asset/?id=507776720", weight = 10 }, 
				{ id = "http://www.roblox.com/asset/?id=507776879", weight = 10 } 
			},
	dance3 = {
				{ id = "http://www.roblox.com/asset/?id=507777268", weight = 10 }, 
				{ id = "http://www.roblox.com/asset/?id=507777451", weight = 10 }, 
				{ id = "http://www.roblox.com/asset/?id=507777623", weight = 10 } 
			},
	laugh = {
				{ id = "http://www.roblox.com/asset/?id=507770818", weight = 10 } 
			},
	cheer = {
				{ id = "http://www.roblox.com/asset/?id=507770677", weight = 10 } 
			},
}
1 Like

Where do you find the roblox wave emote?