When you wear the Captain’s Hat, it has to be during the first fight against the Servants. Run up to the King while wearing it.