How do you ask for a hug?

If your talking about some one you have a crush on, just find a moment when your both talking, bring up something sad, then ask if they need a hug in a playfull sort of way.