#AnimationTrack limit of 256 tracks for one Animator exceeded, new animations will not be played.
86 messages · Page 1 of 1 (latest)
you should probably load the animation when the tool is equipped
while task.wait() do
if equipped == true then
local Humanoid = script.Parent.Parent:WaitForChild("Humanoid")
if Humanoid.MoveDirection == Vector3.new(0,0,0) then
local Anim = game.ReplicatedStorage.Animations.KatanaIdle
Animation = Humanoid:LoadAnimation(Anim)
Animation:Play()
else
if Animation then
Animation:Stop()
end
end
end
end
i have this script for a tool animation script
not play it
yes try that
ok
would "equipped" be my "Animation"
wait
i get it nvm
nvm i dont get it
local Character = Player.Character or Player.CharacterAdded:Wait()
local Equipped = script.Parent.Equipped
while task.wait() do
if Equipped == true then
local Humanoid = Character:WaitForChild("Humanoid")
local Anim = game.ReplicatedStorage.TVAnimation
Animation = Humanoid:LoadAnimation(Anim)
Animation:Play()
else
if Animation then
Animation:Stop()
end
end
end
what i do
it no work!!
is it the if Humanoid.MoveDirection == Vector3.new(0,0,0) then that i removed
all add that back that might be it
it still didnt work!
im not
its doing it itself
this was the original script
you're probably making new animations and loading them every time something happens instead of just making it once and loading it into the animator
how do fix
"making it once and loading it into the animator"
ok
** You are now Level 2! **
im so lost
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
if Animation then
script.Parent.Equipped:Connect(function()
Animation:Play()
end)
script.Parent.Unequipped:Connect(function()
if Animation then
Animation:Stop()
end
end)
else Animation = Humanoid:LoadAnimation(script.Parent:WaitForChild("Animation"))
end```
oh wait
hold on
nvm
@dapper barn can u tell m e if theres a problem here
ok
sory
i hate scripts relating to animation!!
Nuh uh only load one anim per player
I meant only load once
can you help eeeee?
?
do u know if theres an issue in this script
its not doing the animation!
First of all the original script works fine
The script looks fine to me atleast
ik but it was spamming the eroors with the track thing
Are you cloning the script
That won’t happen unless you load like 200 animations on the humanoid
this is NOT ok
The script alone won’t cause error it’s most likely something else
well idk
Can you click on the - client after the warning?
what
In studio
Play until it happens
ok
Also are you dropping the tool constantly and picking it up
Or perhaps picking up 200 tools
no
u cant drop it
u can only get one at a time
if u try and get another it doesnt
Can you reproduce?
ok\
im trying to replicate it rn
it usually happens with 2 people so im using two people thing
its not replicating at all!
** You are now Level 3! **
i might just atke the easy route and make it so it doesnt appear at all when u hold it :(
after all it is a tv
it either would/would not make sense either way
It just fixed itself then
i guess
Excellent 