I need help with lerp/CFrame animating

So the reason why I want to do this is because I want to make Void Script Builder scripts and you cant use normal animations to do so. I would really appreciate help from you guys. Just reply with basic ways to make idle animations and such for your character using lerp.

5 Likes

I don’t really much about animations for a character. But I hope somebody responds you your topic soon.

Lerp is complicated from a newbies prospective, How ever if you know how to work with Lerp & Animating this task can be simple but time consuming. I use an animation plugin then convert its posses for Lerp. I’m not that experience as of writing this with animating the poses like script builder scripts do, but i can show you how to make the poses into lerp or linear interpolation for a character.

Here’s an example of a zombie idle i made using roblox’s built-in animation editor:

-- (Script builder scripts use Motor6D’s to animate/change a character)
Player = game.Players.LocalPlayer
Char = Player.Character
LS = Char.Torso["Left Shoulder"] -- (Joint for Left Arm)
RS = Char.Torso["Right Shoulder"] -- (Joint for Right Arm)

RS.C0 = RS.C0:lerp(RS.C0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90.012)), 1)
LS.C0 = LS.C0:lerp(LS.C0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90.012)), 1)

To make the pose in the animation editor to appear on a character times (x/*) the Motor6D C0 by the converted pose to CFrame.Angles [C0:lerp(Motor.C0 * Converted_Code])

Plugin to convert posses to lerp:

Here’s a great video for explaining lerp more in depth:
https://youtu.be/Yhg6_2UjtCM

Conclusion, This was the most basic way to make a lerp for a character. Hope this reply helps with understanding the method or idea how these type of scripts work.

9 Likes

this was very useful and it helped me!

1 Like