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

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

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

1 answer

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.

2 comments

0

you can't use the LoadAnimation() anymore is there another way?

0

yeah load animation stopped working for me too a few days ago. Ill try to find a new method then post here

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