Animation Exceed?

So, when i run the game on ‘Studio’ something like this appears in output:

AnimationTrack limit of 256 tracks for one animator exceeded. no new tracks will be played

HERE GOES THE SCRIPT

local UserInputService = game:GetService("UserInputService")

--//Debounces

local punching = false

local ACTIVATED = false

local Player = game.Players.LocalPlayer

local Character = game.Workspace:WaitForChild(Player.Name)

local Humanoid = Character:FindFirstChild("Humanoid")

local Punch = Instance.new("Animation",script)

local chakra = game.ReplicatedStorage.Transform.Bijuu.BijuuChakra["8/9"].Chakra:Clone()

Punch.AnimationId = "rbxassetid://4755005087"

------------------------------------------------------------
local PunchTrack1 = Humanoid:LoadAnimation(Punch)

UserInputService.InputBegan:Connect(function(Input)
	if Input.KeyCode == Enum.KeyCode.T and not punching then
		chakra.Parent = Character.Torso
		punching = true
        PunchTrack1:Play()
        wait(0.6)

        Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed + 25
        Character.Humanoid.JumpPower = Character.Humanoid.JumpPower + 80

        local Hair1 = game.ReplicatedStorage.Transform.Bijuu.BijuuParts.Kyuubi1.Handle:Clone()
        Hair1.Parent = Player.Character
        Hair1.Name = "Hair"
        Hair1.CanCollide = false
        Hair1.Locked = true
        Hair1.CFrame = Player.Character.Torso.CFrame
        local Weld = Instance.new("Weld")
        Weld.Parent = Player.Character.Head
        Weld.Part0 = Player.Character.Head
        Weld.Part1 = Hair1
        Weld.C0 = CFrame.new(0, 1.8, 0.11) * CFrame.Angles(0,math.pi,0)
       

	    elseif Input.KeyCode == Enum.KeyCode.T and punching==true and Humanoid.Parent:FindFirstChild("Hair")~=nil then
		chakra.Parent = nil
        Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed - 25	
        Character.Humanoid.JumpPower = Character.Humanoid.JumpPower - 80	
		
		        local Hair =Character:findFirstChild("Hair")
        if Hair~=nil then
	       Hair.Parent = nil
end

		
		wait(20)
		
		
        punching = false 








	end
end)

i have so many scripts that play animations but the output didn’t say anything about where it come from

This might help you.

2 Likes

so i think this isnt the solution

Than, this is not the script that is causing the error.

1 Like