Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to have NPC doing a dance emote?

I want an NPC doing an R15 dance emote (/e dance) but I've noticed that the dance on a regular player takes multiple animations. I don't know how to have it so the NPC can be doing multiple R15 dances at once and keep it playing. Please help.

1 comment

0

put an animator in the model of the NPC and then change the idle to your dance..

1 answer

local Character = script.Parent
local Humanoid = Character.Humanoid

local Animation = Instance.new('Animation')
local Track = nil 

function loadAnim(id)
	Animation.AnimationId = id
	
	Track = Humanoid:LoadAnimation(Animation)

	Track:Play()
end

--Call the function like this:
loadAnim(ID) -- make sure the animation id your pasting is created by you or it wont work

This discussion is preserved as it was. New answers, comments, and votes are closed.