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

Animation button only works in Studio mode?

local AIDs = {"8b1907eefb6274da117ec6505f0087e6"} 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)

1 comment

0

Some of the scripting was missed out on.

1 answer

Have you tried making it a Local Script?

2 comments

0

It is in a localscript.

0

Why is that put down a point.. I was trying to help...

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