In order to play your animation in your open experience, as well as store it for reuse in other projects, you must publish the animation to the cloud. This process creates a unique animationID for your animation that you can reference in scripts, which is especially important if you want to replace any of Roblox's default character animations.
In this chapter, let's go over how to export your animation by publishing it to Roblox, then swap out the template's default walk animation with your own creation.
Export new animation
If you were to close Studio right now, you would lose all of your work on your animation because your animation doesn't have an animationID that Studio can reference for your projects. To fix this, you must export your animation to Roblox so that Studio can connect the animation to your account.
To export your new animation:
In the Animation Editor, click on the ... and select Publish to Roblox. The Asset Configuration window displays.
In the Asset Configuration window, give your animation a name and description, then click the Save button. After a few moments, the window confirms your animation was successfully submitted.
Copy your animation's animationID by clicking the icon next to the ID. A green "ID Copied!" text pop-up displays when you have done this step correctly.
Click the Close button.
Replace default animation
Every player character includes a set of default animations that play whenever the character performs specific in-experience actions, such as running, climbing, or jumping. Roblox provides these animations out-of-the-box for every experience without any additional coding effort.
You can swap out default animations with your own custom animations so that they play for every player that joins your experience. For this lesson, let's swap out the default walking animation with your swim animation so that you can see how it looks with your avatar as soon as you start playing.
To replace the default walking animation with your custom swimming animation:
Find the default walk animation.
- In the Explorer window, go to the search bar, then type walk.
- In your search results, click on WalkAnimationID.
In the Properties window, click the Value field and paste your animation ID by pressing Ctrl + V or ⌘ + V, depending on your computer.