#tool occasionally breaks upon death

1 messages · Page 1 of 1 (latest)

woven rune
#

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

woven rune
#

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;

bleak sleet
woven rune
#

and on most deaths it does load the animation

#

peculiar

#

will it truly impact it

remote grove
#

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

woven rune
#

should i put the humanoid loading script or the animation loading script into characteradded

#

or both

remote grove
#

both

woven rune
#

what is the best course of action

remote grove
#

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

woven rune
remote grove
#

with the idle replaced by your anim id

woven rune
remote grove
woven rune
#

but i also have a torch that uses a different idle animation

remote grove
#

place the animations at the start and inside characteradded

woven rune
#

ah

remote grove
#

so they can be loaded both times

woven rune
#

done

#

what humanoid health checks do i remove

pearl folioBOT
#

studio** You are now Level 6! **studio

remote grove
#

if humanoid.Health<=0 inside humanoid died

woven rune
#

true

#

then let me try out this script now

#

after testing, i was not able to replicate the issue

#

i believe it has been fixed successfully