Loop Animation Wont Stop

  1. What do you want to achieve? Keep it simple and clear!
    i want my characters idle animation to stop and play a different idle animation

  2. What is the issue? Include screenshots / videos if possible!
    when the second idle idle animation plays and i ask for the first on to stop it doesnt stop it, it just plays both the loop animations

local rps = game:GetService("ReplicatedStorage")

script.Parent.OnServerEvent:Connect(function(player, toggle)
	if toggle == true then
		if player.Character.Torso:FindFirstChild("SwordOff") then
			player.Character.Torso:FindFirstChild("SwordOff"):Destroy()
		end
		local sword = rps.Styles.Guts.Sword:Clone()
		local weld = Instance.new("Weld")
		weld.Part0 = player.Character["Right Arm"]
		weld.Part1 = sword
		weld.Parent = player.Character["Right Arm"]
		sword.Parent = player.Character["Right Arm"]
		player.StyleData.Sword.Value = "On"
		
		local PA = player.Character.Humanoid.Animator:GetPlayingAnimationTracks()
		player.Character:WaitForChild("BasicAnim").Disabled = true
		for i,track in pairs(PA) do
			if track.Animation.AnimationId == "rbxassetid://10232257666" then
				local E = track
				print(E.Animation.AnimationId)
				E:Stop()
				E:Destroy()
			end
		end
		player.Character:WaitForChild("GutsAnimSWORD").Disabled = false
	end
end)

note:there arent and errors and i have checked multiple times that the local script called “BasicAnim” is false and the other one is true

still havent found a solution ive tried setting the animation loop value to false and still no success