When a player clicks on the button, the animation I made is supposed to play but for some reason it won't...
local AIDs = {"849f4a5c72c46973ce179eed6c1a33f0"}
local Character = script.Parent.Parent.Parent.Character
local inuse = false
local b = script.Parent.TextButton
b.MouseButton1Down:connect(function(click)
script.ExportAnim.AnimationId = AIDs[1]
if not inuse then
inuse = true
Character.Animate.Disabled = true
HoldAniTrack = Character:WaitForChild('Humanoid'):LoadAnimation(script.ExportAnim)
HoldAniTrack:Play()
wait(5)
Character.Animate.Disabled = false
inuse = false
end
end)
I made the animation using Animation Plugin by ROBLOX anim link: http://www.roblox.com/dancetype2-item?id=171981401

1 comment
nice variable name for 849f4a5c72c46973ce179eed6c1a33f0