Hello. I have recently found out Humanoid:LoadAnimation is deprecated so I am now using
the new Animator. I am confused on how to stop and animation using the new method?
AnimationTrack:Stop(float fadeTime)
what is (float fadeTime)???
It’s an optional parameter that indicates the time it takes for the animation’s weight to hit 0
what do i put in the ()???
Nothing if you don’t want a fade time. You need a reference to an AnimationTrack loaded by Animator:LoadAnimation()
which returns the AnimationTrack itself.
i.e.
local animTrack = Animator:LoadAnimation(anim)
animTrack:Stop()
1 Like