Hello, I just learned how to use moon animator. I wanted to use it so that when I touch a part, it activates a cutscene which shows the character doing an animation. I already got the part and cutscene down, just how do I make the animation added to the game and activate?
To play an animation, you first need to load it in using local Animation = Humanoid:LoadAnimation(AnimationObject)
, where AnimationObject
is an Animation
. This gets an AnimationTrack
from the Animation
you supplied. Then you can simply do: Animation:Play()
.
More on Animation
: https://developer.roblox.com/en-us/api-reference/class/Animation
More on AnimationTrack
: https://developer.roblox.com/en-us/api-reference/class/AnimationTrack
Article on how to use Animations in games: https://developer.roblox.com/en-us/articles/using-animations-in-games
Hope this helps
2 Likes