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

how to load and play an animation on/in a rig on game start?

Asked by 3 years ago

Since roblox changed how you do it, idk how to anymore. Could anyone tell me how you load and play an animation?

1 answer

Log in to vote
0
Answered by 3 years ago

You would do something like this.

local animation = script:WaitForChild('Animation') -- add the animation as a child of the script --
local humanoid = script.Parent:WaitForChild('humanoid') -- the script will be a child of the rig--
local dance = humanoid:LoadAnimation(animation)

dance:Play()

Put the trigger function around the danceplay.

0
you can't use the LoadAnimation() anymore is there another way? R_LabradorRetriever 198 — 3y
0
yeah load animation stopped working for me too a few days ago. Ill try to find a new method then post here theegggod142 35 — 3y
Ad

Answer this question