AnimationTrack limit of 256 tracks

“AnimationTrack limit of 256 tracks for one Animator exceeded, new animations will not be played” I get this error everytime when my run anim starts playing.

function onRunning(speed)
	if speed > 0.01 then
		if script.Parent.ValuesFolder.Sprinting.Value == false then
			if Humanoid.Health < 60 then
			playAnimation("hurtwalk", 0.1, Humanoid)
			setAnimationSpeed(speed / 14.5)
			else
			playAnimation("walk", 0.1, Humanoid)
			setAnimationSpeed(speed / 14.5)
			end
		else
			if Humanoid.Health < 60 then
			playAnimation("hurtsprint", 0.2, Humanoid)
			setAnimationSpeed(speed / 20)
			elseif Humanoid.Health >= 60 then
			playAnimation("sprint", 0.2, Humanoid)
			setAnimationSpeed(speed / 20)
			end
		end
		pose = "Running"

Where are you loading the animations? Playing and stopping should not count against you

The animations loads in when your character starts sprinting

Cache the animation tracks that are returned when you load them and play them as needed. I used this to get around the limit when I ran into this problem.

If you sprint 256 times, are there 256 loaded animations?

Load once, play 200 times.

2 Likes