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

How to have NPC doing a dance emote?

Asked by 6 years ago

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.

0
put an animator in the model of the NPC and then change the idle to your dance.. greatneil80 2647 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
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
Ad

Answer this question