Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone fix this animation GUI button?

Asked by
Seraine 103
9 years ago

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

0
nice variable name for 849f4a5c72c46973ce179eed6c1a33f0 Tesouro 407 — 9y

1 answer

Log in to vote
0
Answered by 8 years ago

you forgot to fill in the boolvalue at 11

0
Idiot that's not a bool it's a freaking variable itsJooJoo 195 — 7y
0
sorry jerk I bet I can script better than you now Clakker200 5 — 7y
Ad

Answer this question