Animation does not work

when I Disabled an animation script with other script,

local animation = script:WaitForChild(‘Animation’)

local humanoid = script.Parent:WaitForChild(‘Humanoid’)

local dance = humanoid:LoadAnimation(animation)

dance:Play()

print(“Played”)

It does not work!
(I don’t know how to write a script here)

Do you own the animation?
Is the priority of the animation high enough?
Did you insert the animation id?
Do any errors throw in the output?

2 Likes

Do you want to run it off a GUI button?

@Rucliwood Would you like it to play off a GUI Button, or something else?

Have you set the AnimationPriority in the Animation Editor to Action?

If you disabled this script, shouldn’t it not work? After all, that’s what disabling scripts does, preventing them from running.

Makes sense. Why would be animation script be disabled in the first place?

@Rucliwood So you disabled, the script that has the Animation script in it. When you disable a script, the script no longer works. Until you re-enable the script. Try un-disabling the script, then that should work.