So I’m trying to make an NPC that does random dance moves (animations) and then once that animation is finished (wait(track.Length)), the script is supposed to play a new animation.
My problem is that the script does not wait the actual length of the animation track and the animations overlap and give a glitchy dance.
I tried setting track.Looped = false and that still didn’t do anything.
Any suggestions on what I can do to fix the issue?
Thank you for your feedback.
Edit: I tried a print(track.Length) and the output was 0 for most of the animations.