Recreating robloxs animation loader

Due to how roblox is setup, I have decided I would like to recreate how animations are loaded (E.g. Animator:LoadAnimation(AnimationId)).

Except I would like to just use Keyframe sequences as I’ll be able to organize them much better.
I was curious on how I could go about doing this, I dont need all the fancy features like different easing styles, or anything complicated like that.

Im trying to make it at the minimum run about as well as robloxs default system, and yeah.


I’ve considered using Tweens, but I figured that probably wont work well with blending animations, so I take it I should probably use like lerps or something?

Also any ideas on how to make animation blending would be great :sob:


No Im not asking you to right code for me, all I want is some advice and/or ideas to point me in the right direction!

Thanks in advanced!

1 Like

Firstly you need to get the AnimationClip with AnimationClipProvider. The most common type of Animation will be a KeyframeSequence (AKA the returned AnimationClip:IsA("KeyframeSequence") == true).

As long as there are no Animators with playing animations, your code will have to act as one. This means that all of the Motor6D.Transforms have to be reset back to CFrame.identity at the beginning of the animate function, and you must iterate through all the Poses of the KeyframeSequence all apply the correct transforms, lerping with the CFrame.identity based on the weight of the animation that you want.