# Animator

Animator : `Instance`

## Overview

The core class for playing and synchronizing animations

This instance handles all replication processes for running AnimationTrack instances.

## Properties

## Methods

### LoadAnimation

Loads the specified Animation into the Animator and returns a playable AnimationTrack instance.

If the Animator is included in a model such as a player character, where the local player owns the network ownership, calling this method on the client will also load the animation on the server.

To use LoadAnimation(), the Animator must exist within the Workspace, and the Animator must be created on the server and replicated to the client for animation replication to work. An Animator created locally cannot send loaded animations to other clients.

#### Parameters

| `Animation` InAnimation | The Animation object to be loaded |
| ----------------------- | --------------------------------- |

#### Return

| `AnimationTrack` | The returned animation track. |
| ---------------- | ----------------------------- |

#### 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()
```

## Events

## See also

{% content-ref url="../../../manual/studio-manual/character/character-animation" %}
[character-animation](https://docs.overdare.com/manual/studio-manual/character/character-animation)
{% endcontent-ref %}
