I’m trying to make a script that gets the players hair from their avatar and puts it onto a custom rig.
The script works completely as intended I just get this same error every time and it makes me angry.
this is the error
I havent tried much as the error does not actually break the script. I have just gotten fed up of it appearing and wanted advice on how I may go about fixing it.
Hello, i noticed that your making a variable for the humanoid, but you didn’t check if there was an humanoid (i don’t know if that makes the error)
but what im pretty sure is that you don’t handle the case when a player dies, so maybe it could be searching an old model of the character that doesnt exist anymore
I replaced the waitforchild() with a findfirstchild() and added a check for if the humanoid exists and it fixed the error. Thanks for taking your time to reply.