Animations Using Scripts

I’m trying to achieve a form of tween animation using a script, but I’m not strong with the complex math formulas used to make the rotations work. Is there a way to convert a roblox animation into a tween to play it in a script?

I’m trying to make animations that I can use in other games. It’s basically walk animations.

I’m not sure how exactly you’d do it, but the second link I’ve provided is the method for getting the keyframes in an existing animation, which would help you convert to something you can tween.

If the keyframes are stored as CFrames, you can easily avoid pretty much all math by using CF0:Lerp(CF1, delta).