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?

4 comments

0

Please use Lua format. Nobody can read this and help you.

0

^

0

I've corrected it now

0

The issue is most likely that you need to first publish the animation, then use it's reference ID.