Why are the components on my script disappearing when I press play

When I press the play button the components I have become unlinked from the script they are supposed to be attached to (see the Create New Character Script)

Anyone know what’s happening or how to fix it?

try like this:

 maleCharacterPic = transform.FindChild("CharacterPicMale").gameObject;