Rucliwood
(Rucliwood)
March 28, 2020, 3:09am
#1
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
Kreekizy
(Kreekizy)
March 28, 2020, 3:48am
#3
Do you want to run it off a GUI button?
Kreekizy
(Kreekizy)
March 28, 2020, 3:56am
#4
@Rucliwood Would you like it to play off a GUI Button, or something else?
bt5191
(btt)
March 28, 2020, 7:23am
#5
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?
Kreekizy
(Kreekizy)
March 31, 2020, 10:35pm
#8
@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.