How can I make a dropdown button?

The title is self explanatory, how could I go about scripting a dropdown button?

4 Likes