Both codes I have so far, which are literally identical:

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://5154209745"
local control = script.Parent.Humanoid
control:LoadAnimation(animation):Play()
--this is the working one

----------------------------------------------------------------------------

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://5152681449"
local control = script.Parent.Humanoid
control:LoadAnimation(animation):Play()
--this one is not working

Loop is set to true, both showed true in properties and the one looping toggle.

If this is a studio bug, please advise what I could do to get around this.