What do you want to achieve? I want to ensure that the animation remains looped after the bat is drawn.
What is the issue? When I draw the bat, the animation plays only once, even though it should be looped.
local animationTrack = self.Parent.Humanoid:LoadAnimation(createAnim(Bat.Main.Tools[self.Name].Animations.Idles[math.random(1, #Bat.Main.Tools[self.Name].Animations.Idles)].ID, "Equip"))
animationTrack.Priority = Enum.AnimationPriority.Action
animationTrack.Looped = true
animationTrack:Play()
Create Anim Function:
local function createAnim(id: string, name: string)
local anim = Instance.new("Animation")
anim.Name = name or "Unknown"
anim.AnimationId = id
return anim
end