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

Button only works in Studio mode?

Asked by
Seraine 103
10 years ago

I'm using localscript, it is inside a ScreenGui. The animation I made is using the plugin by ROBLOX. The GUI works fine in Play Solo, but when I click in online mode nothing happens...

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)

I've also tried server script, but still doesn't work in server mode :L Can someone help please?

0
Please use Lua format. Nobody can read this and help you. SquirreIOnToast 309 — 10y
0
^ Goulstem 8144 — 10y
0
I've corrected it now Seraine 103 — 10y
0
The issue is most likely that you need to first publish the animation, then use it's reference ID. SquirreIOnToast 309 — 10y

Answer this question