I decided to use this script:
local animation = script:WaitForChild('Animation') local humanoid = script.Parent:WaitForChild('Humanoid') local dance = humanoid:LoadAnimation(animation) dance:Play()
But It didn't worked, I was wondering why and founded out that Humanoid:LoadAnimation will not work anymore... And I need help, how do I make an script that does an custom animation I made without It?
There is something that was replacing Humanoid
for :LoadAnimation
method. It is called Animator
. Animator
uses :LoadAnimation
now. So instead of doing the method you used, you should do this:
local animation = -- your animation local humanoid = script.Parent:WaitForChild("Humanoid") local dance = humanoid:WaitForChild("Animator"):LoadAnimation(animation) dance:Play()