Minor name change

Has anybody had their child’s last name changed WITH fathers consent? What do they do at the court hearing? I’m so nervous. I have court tomorrow and don’t know what to expect. Thanks.