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

How do I make this dummy play an animation?

Asked by 6 years ago

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!

0
* goes hard on you* User#19524 175 — 6y

1 answer

Log in to vote
2
Answered by
hellmatic 1523 Moderation Voter
6 years ago
Edited 6 years ago

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()
0
Thanks! CaptainAlien132 225 — 6y
Ad

Answer this question