:LoadAnimation() is deprecated, what do I use now?

What do I use in place of :LoadAnimation() also what is the “Animator” instance? Just got back to scripting and I’m so rusty.

1 Like

Now you should use :LoadAnimation() on the Animator instance.

2 Likes

can you give me example code please?

2 Likes
local Humanoid = script.Parent:WaitForChild("Humanoid")
local Animation = script.Animation

Humanoid.Animator:LoadAnimation(Animation)
2 Likes

ohh I see, thanks so much @CodyTheDwagon

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.