Mass animation stop

I’m trying to make a script to stop all of a certain animations that are playing, but it does not work.

Script:

for _, v in pairs(workspace:GetDescendants()) do
    if v.Name == "Animation" and v.Parent.Name == "Shadow Gun" then
        v:Stop()
    end
end
for i,v in ipairs(animator:GetPlayingAnimationTracks()) do
v:Stop()
end