>>331658810
>>331664859
What >>331661142 meant is that you dragged the, for example, 'hair_side_root' bone from a DIFFERENT model into the script instead of the one from that model.
Make sure it's the same model. Otherwise i have no clue.