so i have this axe implemented ingame; it usually works fine but after sometimes dying, the axe stops playing animations and stops swinging
what am i missing
the many humanoid health checks are likely unnecessary but i put them in while trying to diagnose and fix the problem
before putting the many humanoid health checks, when the bug happened any prints i put in would stop right before the hitbox was created, but now with my code tampering it doesnt even swing when the glitch happens anymore so im not sure what is going on
please assist
#tool occasionally breaks upon death
1 messages · Page 1 of 1 (latest)
this has been a recurring issue in my playtests and i wish to see how i can refine this code so it does not happen and so that i can make sure i dont make the same issue again;
I think you need to load the animations every time a player dies
the script does not produce errors in the console upon the glitch
and on most deaths it does load the animation
peculiar
will it truly impact it
yeah
each time a new character is created, the humanoid instance is different
you load it once at the start of the script
so the next humanoid wont be loaded
should i put the humanoid loading script or the animation loading script into characteradded
or both
both
what is the best course of action
once at the start when you define the character, and once inside characteradded for new characters
are you trying to make an idle anim?
there's a better way to do that if so
i want an idle anim and a swing anim
is this better ?
idle anims should be added by pasting roblox's default animation script into starter character scripts
with the idle replaced by your anim id
i already have the animate script
i said both
but i also have a torch that uses a different idle animation
place the animations at the start and inside characteradded
ah
so they can be loaded both times
** You are now Level 6! **
if humanoid.Health<=0 inside humanoid died