#how do i fix this when it keeps saying the hum is nil?

1 messages · Page 1 of 1 (latest)

inland mica
#

so im trying to make the player play in animation when getting hit but it keeps calling the player nil

narrow creek
#

u have to check if hit.parent has a humanoid

#

and then u can set it

versed basin
#

check if Gotpushed is in lowercase

narrow creek
#

also the main reason why it dont work is bc

#

u have script.parent:destroy()

#

in the beginning so the end never gets executed

inland mica
#

when it trys to play the anim

narrow creek
#

if gotpushed is a animation instance then

#

plr.character:loadanimation(gotpushed.animationid)

#

@inland mica

inland mica
#

oh ok ima test that

echo drumBOT
#

studio** You are now Level 2! **studio