Can someone fix this animation GUI button?
When a player clicks on the button, the animation I made is supposed to play but for some reason it won't...
01 | local AIDs = { "849f4a5c72c46973ce179eed6c1a33f0" } |
02 | local Character = script.Parent.Parent.Parent.Character |
04 | local b = script.Parent.TextButton |
05 | b.MouseButton 1 Down:connect( function (click) |
07 | script.ExportAnim.AnimationId = AIDs [ 1 ] |
10 | Character.Animate.Disabled = true |
11 | HoldAniTrack = Character:WaitForChild( 'Humanoid' ):LoadAnimation(script.ExportAnim) |
14 | Character.Animate.Disabled = false |
I made the animation using Animation Plugin by ROBLOX
anim link: http://www.roblox.com/dancetype2-item?id=171981401