Does anyone know why this is happening? I’m having issues with it. Only happens when a player dies/resets.
Are you looping something??, show me the script
OOOH, i know why, so you need to put the animation loader outside of it, so make it that when the player joins, the animation loads
Check if the FindFIrstChildOfClass("Humanoid")
isnt nil
Because when you die, you still have the tool equipped
Yea that too
————-30 chars————
And why are you parenting the humanoid to the player???
just use
:WaitForChild("Humanoid"):LoadAnimation()
Yeah that’s what i was tryna say
I did that before. Didn’t work, but I’ll do it for u guys
Also, I’m not talkign about using the tool when the health is 0, I’m talkign about after they respawn. Still happens btw.
I put this apart and I also used WaitForChild
Why in line 42 you tried to destroy an animation track?
Also, you should do AnimationTrack:Play()
to play the animation and AnimationTrack:Stop()
to stop it.
Ive already removed that line. If you dont know, theres a maximum of 256 tracks you can load into a humanoid. If i didnt destroy them I would overload the humanoid with animations. Also I play the animation further on in the script, but it has nothing to do with the error
You can try:
while Char.Parent = nil do
Char.AncestryChanged:Wait()
end
It gives that error because the character (which the humanoid is parented under) may not be parented under workspace yet (basically means that the character parent is still nil), so the loadanimation would say that the humanoid parent is nil, because the humanoid’s parent’s parent is nil.
(might not be the case tho)
I’m sorry that didn’t work, it just keeps looping that forever.