Hi, so I have a sword with a folder named "Animations" with 3 animations inside: "Attack1" "Attack2" "Idle"
I also have a local script inside the tool named "Client"
The part that needs changing inside Client Code:
local db = true
local Animation = script.Parent.Parent.Humanoid:LoadAnimation(Attack_Animations[Anim_Name..Attack_Num])
Tool.Activated:Connect(function()
OneHit.Value = true
if db == true then
db = false
Animation:Play()
Audio:Play()
wait(0.7)
if Attack_Num == 1 then
Attack_Num = Attack_Num + 1
else if Attack_Num == 2 then
Attack_Num = 1
end
end
db = true
end
end)
The thing is that it would only do Attack1 animation and not Attack2. I have also tried putting line 1 inside the tool.Activated function. It works but after a bit it comes up with the error AnimationTrack limit of 256 tracks for one Animator exceeded, new animations will not be played. Please help.

1 comment
line 2 is local Animation = script.Parent.Parent.Humanoid:LoadAnimation(Attack_Animations[Anim_Name..Attack_Num])