Mental illness are a tricky subject because they can run in the family or be just from the scenario that someone is in. But for your question mental illnesses can "come from" either parent or even both. I know this because both my father and mothers families have history of mental illnesses. This is a extremely interesting and complicated subject that i would recommend looking into. I hope this helps!