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

How do I make this dummy play an animation?

I'm trying to make this dummy have an animation play, but nothing happens.

local a = script.Animation
a.AnimationId = "rbxassetid://33796059"
 h = Character:FindFirstChild'Humanoid'
local t = h:LoadAnimation(a)
t:Play()

Thanks if you can help, I'm also a bit of a noob so go easy on me!

1 comment

0
  • goes hard on you*

1 answer

✓ Accepted answer

Make sure this is a script and is inside the NPC's character.

local Character = script.Parent

local animation = Instance.new('Animation')
local track = nil 

animation.AnimationId = "rbxassetid://33796059"

track = Character.Humanoid:LoadAnimation(animation)
track:Play()

1 comment

0

Thanks!

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