Help with animations

External Media

Im trying to make it so that after the equip animation the idle plays but it stutters a little bit before the idle plays, how do I fix it? The idle priority is idle and the equip priority is action, i changed the idle priority to idle and it still didnt work

can you show the code you used?

local function stopAnims()
	for _, v in pairs (humanoid:GetPlayingAnimationTracks()) do
		v:Stop()
	end
end

tool.Equipped:Connect(function()
	equip:Play()
	equip.Ended:Wait()
	idle:Play()
end)

tool.Unequipped:Connect(stopAnims)