You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
Animations playing when called. -
What is the issue? Include screenshots / videos if possible!
the debugging is working fine, yet anims dont play for no reason -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Looking at other devforum posts, asking help in discord servers, changing code multiple times
function module.PlayAnim(animid, whatplay, speed, priority)
local anim = Instance.new('Animation')
anim.AnimationId = animid
repeat task.wait() until anim.AnimationId == animid
local loaded = whatplay:LoadAnimation(anim)
loaded.Priority = priority or Enum.AnimationPriority.Action4
repeat task.wait() until loaded.Length > 0
print(loaded.Length, animid)
loaded:Play(0, 1, speed or 1)
end