Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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...

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

0

nice variable name for 849f4a5c72c46973ce179eed6c1a33f0

1 answer

you forgot to fill in the boolvalue at 11

2 comments

0

Idiot that's not a bool it's a freaking variable

0

sorry jerk I bet I can script better than you now

This discussion is preserved as it was. New answers, comments, and votes are closed.