Intro
Now, we all know that ROBLOX’s :Play() and :Stop() functions for AnimationTracks have fade time parameters which are pretty useful. But, I know I’m not the only one who really hates that it’s a forced linear ease, because it looks really bad most of the time.
But don’t worry, because I made a module to combat this and make it look smooth when doing AnimationTrack blending! Now, you can apply easing styles!!
How it works
By combining TweenService with :AdjustWeight() and :AdjustSpeed(), I’ve successfully made a module that is capable of four very nice functions that allow you to ease animations in and out easily. It returns a “modded” animation object that has extra functions and events (documentation and source code will be below)
I’m not going to explain how it works here, because the important thing for you to know is what it actually looks like, so that you’re convinced to get it!
Video Demonstrations
ROBLOX’s default AnimationTrack:Play()/:Stop(), with non-customizable easing and a forced linear ease:
Easimation’s easimationObject:Play()/:Stop(), with customizable easing: Easimation:Play() and Easimation:Stop(), with tween settings TweenInfo.new(.7, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
Easimation’s easimationObject:EaseWeight():
Easimation’s easimationObject:EaseSpeed():
Source Code and Documentation
Source code is here:
Documentation and tutorial:
Where do I get it?
Link to get the module (also includes documentation inside of it): Easimation Module v1.1 - Roblox
IMPORTANT NOTE: For those of you who don’t know, when using AnimationTrack weight and you want animations to “stop playing”, make sure you NEVER set it to 0 if you’re planning to adjust the weight to something higher again. Set it to a really small number like .000001, because once you set an AnimationTrack’s weight to 0, the server won’t account for the animation anymore, and the animation won’t replicate. It’s a weird ROBLOX thing, it’s not anyone’s fault.
If there are any bugs, reply to this post with the bug so I can fix it. Thank you, and have a good day!
Update 8/4/20 v1.1: Fixed a bug so that if you call :Stop while something is still tweening, it doesn’t mess up and cancels the other tween. So, the stopping tween now overrides any playing ones.