What exactly are module scripts used for?

Thanks!
But what are metatables used for? Also I have another post asking about metatables, so I would be really happy if you helped!