So roblox deprecated Humnoid:LoadAnimation()
and I need to use animator In order to make the NPC dance but I don't really know how to use animator (Cuz Im new to It) and there Isn't YT videos surrounding animator
Also: I animate moon animator I put the animation Inside of the script
There are no YouTube tutorials covering Animators since they're not really that hard to learn. You can find information about them here
I can tell you a bit about Animators though. First of all, you're going to have to add the animator inside the Humanoid
. You can do that using a script or through the explorer. Then, you can just do :LoadAnimation()
like how you'd do it with a regular Humanoid.
local Character = script.Parent -- // Change this to your desired character path local Animation = Character.Humanoid.Animator:LoadAnimation(script.Animation) -- // Change to desired animation path Animation:Play()
Hope this helped you!