Your illegal status has nothing to do with your parent rights. The judge, however, may look at your illegal status as a factor to decide that your situation is unstable for the child. You should consult an attorney immediately for advices.