Would this be a good idea? (Scripting animations)

Now I’ve a game with tons of animations. To make sure no animations override with others I decided to get all the animation tracks in a player’s animator, stop them, then play the animationtrack that I want. Something like this:

local AnimationTracks = humanoid:WaitForChild("Animator"):GetPlayingAnimationTracks()
			for Every, AnimationTrack in AnimationTracks do
				if AnimationTrack and AnimationTrack.IsPlaying then
					print(AnimationTrack)
					AnimationTrack:Stop()
				end
			end
local RunTrack = humanoid:WaitForChild("Animator"):LoadAnimation(RunAnimation)
				print(AnimationTrack)
				RunTrack:Play()

Is this a good idea?

Is it a good idea.

30char