Animation not playing

my animation won’t play, and it prints true when i print if it’s playing.

where am i going wrong?

local Humanoid = workspace.Dummy.Humanoid

local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/asset/?id=5938365243"

local track = Humanoid:WaitForChild("AnimationController"):LoadAnimation(animation)
track.Priority = Enum.AnimationPriority.Action
track.Looped = true
track:Play()

print(track.IsPlaying)
2 Likes

I believe AnimationId takes “rbxassetid:yourassetid”.
Try changing it.

it has the same results.

this character limit is annoying.

Maybe try set animation’s parent.

animation.Parent = "Your parent here"

I don’t know, does this can be solution.

1 Like

still the same results. i dont really think the parenting matters.

Are you sure the humanoid in question doesn’t use the default “Animator” instance?

image

i tried changing it to Animator, but it still has the exact same results

Another thing, the only anchored portion of it is its HumanoidRootPart.

Are you sure this animation it’s your?

Because if you haven’t done the animation yourself, roblox will not load the animation made by another person.

1 Like

it’s a roblox emote. is that not fine?

I really don’t know what could be causing your problem.
Maybe it is because the animationController: LoadAnimation function is deprecated (link).

1 Like

i ended up figuring it out, but thank you all for your help! ill mark this as a solution so people know it’s deprecated.

1 Like