Very basic resistor/piezo question

1 milliohm (mOhm) or 1 megaohm (MOhm)? They're quite different.

The resistor is there to give a path for some of the energy to go, instead of just straight into an input pin.