How can i make a create quote/sales order from a record button?

How can i make a create quote/sales order from a record button?

If anyone has already acheived this what script did you use?