To animate in Roblox, start by creating a poseable character rig. Open Roblox Studio and go to the Avatar tab. Click on Rig Builder, select the rig type (R15 or R6), and choose the body shape you prefer. Click “Generate Rig” to create your character rig.
Next, open the Animation Editor by going to Plugins and selecting Animation Editor. Choose your rig, name your new animation file, and click “Create” to open the editor. This is where you will start building your animation.
To create keyframes, begin by setting the neutral pose. Right-click on the timeline and select “Add Keyframe”. Use the Rotate and Move tools to pose the rig. Add keyframes for each pose you create by right-clicking on the timeline again.
Save and export your animation by clicking the ellipsis button and selecting “Save”. Then, click the ellipsis button again and choose “Export”. Copy the animation ID so you can use it in your scripts.
Finally, script the animation. Create a script and define both the animation and humanoid variables. Use the `loadAnimation` function to load your animation. Play it using the `Play` function. You can also adjust the animation speed with the `AdjustSpeed` function. Following these steps will help you create and play animations in Roblox Studio easily.