Changing animation on the run

I’m 'bout to change the idle animation on the run when a new weapon is picked up. I’m most likely overthinking this again, but this is where my head started jamming.
GetPlayingAnimationTracks() is deprecated, any replacement for that?

playerWeapon.DescendantAdded:Connect(function()
local animations = playerWeapon:WaitForChild("Animations")
--something must stop the Holding here
local Holding = player.Character:WaitForChild("Humanoid"):LoadAnimation(animations:WaitForChild("Hold"))
Holding:Play() end)
1 Like
for i,v in pairs(player.Character.Humanoid:GetPlayingAnimationTracks()) do
v:Stop() end

worked as always. Well, just gotta use deprecated stuff then, pleasure to pop by anyway, thank you.