The opening scene with the street merchant was completely unscripted. Robin Williams was brought into the sound stage and was asked to stand behind a table that had several objects on it and a bed sheet covering them all. The animators asked him to lift the sheet, and without looking take an object from the table and describe it in character. Much of the material in that recording session was not appropriate for a Disney film.
"Combination hookah and coffee maker, also makes julienne fries! It will not break! It will not- …. it broke."
that line used to just kill me as a kid and now it’s better because it was unscripted and he probably broke the prop