> For the complete documentation index, see [llms.txt](https://docs.overdare.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overdare.com/development/api-reference/classes/animation.md).

# Animation

Animation : `Instance`

## Overview

The animation Object references an animation's Asset Id

For AnimationTrack to replicate correctly, an animator must be a child of a humanoid. Animations started on a player's client are automatically replicated to the server and other clients.

## Properties

### AnimationId

`string`

Sets the Asset Id of the animation referenced by the Animation Object.

The Asset Id is generated when the animation is imported.

#### Code Samples

```lua
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer

repeat wait() until LocalPlayer.Character

local Character = LocalPlayer.Character
local Humanoid = Character:WaitForChild("Humanoid")

local Animation = Instance.new("Animation")
Animation.AnimationId = "ovdrassetid://18850100" -- WinAnimation01

local Animator = Humanoid:FindFirstChild("Animator")
local AnimationTrack = Animator:LoadAnimation(Animation)

AnimationTrack:Play()
```

## Methods

## Events

## See also

{% content-ref url="/pages/YK5NZVV1FAIHbrQSOuHF" %}
[Character Animation](/manual/studio-manual/character/character-animation.md)
{% endcontent-ref %}
