Don't let it melt, per se. The ice cream (usually vanilla) usually mixes a bit with the soda (usually a root beer or coke) and makes creamy foam which is quite nice to drink. After drinking that, spoon out a bit of the ice cream which usually agitated things enough to make more foam. Drink and repeat.