How To Use New Animation Functions

I’ve recently saw that the functions to animate were deprecated, and I can’t understand the devhub. How do I use the new functions? :wave:

You would use an Animator | Roblox Creator Documentation instead of a Humanoid | Roblox Creator Documentation object to animate.

1 Like

So like this?

local birdAnimation = script.Bird
local char = game.Players.LocalPlayer.Character
local hum = char.Humanoid
local animator = hum.Animator
local track = animator:LoadAnimation(birdAnimation)

wait(8)
track:Play()

Yep, pretty sure that is right.

1 Like