they recently deprecated this feature, so you'll have to do it this way
2 | local BirdAnimation = script.Parent.animation |
3 | local Player = game.Players.LocalPlayer |
4 | local Char = player.Character |
5 | local Hum = char.Humanoid |
7 | local BirdAnimationTrack = Hum.Animator:LoadAnimation(BirdAnimation) |
8 | BirdAnimationTrack:Play() |
You will have to include the "Animator" in the humanoid as well.
TIPS
When its an NPC, Insert an "AnimationController" and replace the "Animator" in the script with "AnimationController" because NPC's Naturally don't get animators
Also, this feature can be used in ServerScripts!