I know I am a little late to the party here, but for those who refuse to update like I do, attached are addcomponent and addscript that have been updated for Unity 5. I include both of them, because both were needed for me as it stopped on one, and then the other when I got the first fixed. Replace them with your current ones and you'll be ready to rock.