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

Animation button only works in Studio mode?

Asked by
Seraine 103
9 years ago

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)

0
Some of the scripting was missed out on. Grenaderade 525 — 9y

1 answer

Log in to vote
-1
Answered by 9 years ago

Have you tried making it a Local Script?

0
It is in a localscript. Seraine 103 — 9y
0
Why is that put down a point.. I was trying to help... Leg0brick 10 — 9y
Ad

Answer this question