How can I disable default Roblox Animation for a certain time?

Hello. You see the title. I have a custom animation with UserInputService.
But when I play the animation, RunAnimation brokes it then a mix of run and custom animation happens.

I know something is wrong in my script, I’m new to Animations. Also, I tried with :AnimationPlayed() but couldn’t work.

Here, my code:

userInputService.InputBegan:Connect(function(input, gameProcessedEvent)
	if input.UserInputType == Enum.UserInputType.MouseButton3 then
		local AnimationTracks = hum:GetPlayingAnimationTracks()
	
		for i, track in pairs (AnimationTracks) do
			if track.Name == "RunAnim" then
				track:Stop()
				print("Run stopped")
			end
		end
				
		customTrack:Play()		
		debounce = false
		wait(1)
		debounce = true
	end
end)

Just have an animation with a blank non-moving dummy, set the priority to action, and play it until you want to stop the core animations.

By the way, It prints “Run stopped”

Thanks for the reading and information.