Working with animations
Every time we walk, jump, swim, climb, fall, dance, or perform any other action, we use animations. Animations are the things that make our characters move. If you type /e dance
, in most games, you will start dancing. This dance was animated. In this book, we will not cover how to make animations. Instead, we will learn how to use them in scripts.
In the following sections, we will learn how to load and play animations. Besides this, we will learn about other cool things we can do with animations on both your character and Non-Player Characters (NPCs).
Uploading animations
Before we can start playing an animation, we need an animation. If you use the right mouse button on pretty much any instance in the Explorer frame, you will see an Insert Object… option. Use this to insert something called an Animation. There is a unique property to this animation. This property is called AnimationId. This property holds a certain Roblox Asset ID. If we upload...