For a table a Describe shows the script. For a function or procedure, it shows the Source.
The source will display just that: the source code to create the PL/SQL object (function, procedure, package, etc.). Source also gives you a mini navigator for parameters, that's not needed for a DDL script.