After uploading animations and using their IDs as assets for the AnimationID property of Animations for storage, I attempted to play them. Unfortunately, as I was attempting to export these looped one-frame animations, it would reset to the starting position (right as I pressed the Export button). I'm entirely new to animations. How should I make this work as I want it to?
I'm pretty sure that it is an issue with the animations, themselves, but here is the code pertinent to this..
local plr = game.Players.LocalPlayer local CurrentAnim anims = { z = script.Advance, l = script.Order } --There are more. But they are not necessary. function loadAnim(num) ypcall(function() CurrentAnim:Stop() CurrentAnim:Destroy() end) CurrentAnim = plr.Character.Humanoid:LoadAnimation(num) CurrentAnim:Play() end loadAnim(anims["z"])
"Advance" and "Order" are Animation objects inside of the LocalScript, with their AnimationId's set to the corresponding 'asset'.
All help is appreciated. Thank you, in advance.