Make a play *model* animation button

Hello everyone,

So im new with animations, and i have a struggle. Im making a show with very much different animations, but i don’t know how to make a button that plays a model animation, and not a players animation?. Can someone help me with that?. I’ve tried some scripts, but it doesnt work.
For example… a button that plays a flying bird.
Thanks in advance

You can refer to a model’s animator similar to the player’s:
Model:WaitForChild(“Humanoid”):WaitForChild(“Animator”)
then play the animation as you’d do for a player.
I recommend reading this documentation as it has code examples that might help you out:Using Animations | Roblox Creator Documentation

thanks!
im gonna try it, thanks for the tip