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

How do I use animator and how can I script It?

Asked by 2 years ago

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

1 answer

Log in to vote
1
Answered by
Neatwyy 123
2 years ago
Edited 2 years ago

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!

0
Oh thanks! imnotaguest1121 362 — 2y
0
Oh thanks! imnotaguest1121 362 — 2y
Ad

Answer this question