In some cases, a court will assign an attorney to a child. This occurs when an emergency custody hearing takes place in Oklahoma because of accusations that a child has been deprived. When this occurs, the parents may be obliged to pay for the service.