My animation GUI works in roblox studio, but not in-game. And yes, the script is local. I can't seem to figure out why this is breaking. If I need to make a remote event in order to change something such as a "Looped" property, please tell me. I've tried that once, and it's not very effective.
local animation=script.Parent.AteaseStart
-- Start animation, after 0.2 seconds it is cancelled, for equipping the arms into their position
local animation2=script.Parent.Atease
--The animation that has "Looping" enabled to keep the arms in the desired "atease" position
local animation3=script.Parent.AteaseEnd
--The 0.2 second animation (like the other) to reset the players arms from the atease position
local trackanimation=nil
local trackanimation2=nil
local trackanimation3=nil
local playability=true
function playAnimation(AnimationSource)
if playability==true then
local plr=game.Players.LocalPlayer
trackanimation=plr.Character.Humanoid:LoadAnimation(animation)
trackanimation2=plr.Character.Humanoid:LoadAnimation(animation2)
trackanimation3=plr.Character.Humanoid:LoadAnimation(animation3)
trackanimation:Play()
wait(0.2)
trackanimation:Stop()
trackanimation2:Play()
playability=false
elseif playability==false then
trackanimation2:Stop()
trackanimation3:Play()
wait(0.2)
trackanimation3:Stop()
playability=true
end
end
script.Parent.MouseButton1Click:connect(playAnimation)
In Editor: https://gyazo.com/ae3e879e8a673793ea687ca1b3bf2ea2
In Game: https://i.gyazo.com/688c3890b20468c6a6b603d31749f1ed.mp4

1 comment
What I can tell, is that the second animation doesn't want to loop in-game, though it has "looping" enabled under its settings in animation editor.