Ad
Log in to vote
0

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

Asked by 8 months 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 8 months 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 190 — 8mo
0
yeah load animation stopped working for me too a few days ago. Ill try to find a new method then post here theegggod142 20 — 8mo
Ad

Answer this question