Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is my animtrack filling up the limit?

Asked by 3 years ago

As you can see my code only loads the sword swing animation ONCE. Also, I don't think the disabling of the different animation scripts is it because I get this error when I swing the sword too many times.

I got this error: "AnimationTrack limit of 256 tracks for one Animator exceeded, new animations will not be played. (x322)"

01local Plr = game.Players.LocalPlayer
02Plr.CharacterAdded:Wait()
03local A1 = game.ReplicatedStorage.Animate:Clone()
04local A2 = Plr.Character:WaitForChild("Animate")
05A1.Parent = Plr.Character
06local E = Plr.Character:WaitForChild("SwordT")
07local U = Plr.Character:WaitForChild("SwordF")
08local Anim = Instance.new("Animation")
09Anim.AnimationId = 'rbxassetid://7306114415'
10local Hum = Plr.Character:WaitForChild("Humanoid")
11local Swing = Hum:LoadAnimation(Anim)
12local HeadshotId = "595183327"
13local BodyshotId = "7171761940"
14 
15 
View all 50 lines...

Answer this question