How are the sound effects of films made?

Twisting and shaking an aluminum foil against the microphone can remind the listener of lightning.After adding some side effects, the resulting sound can be used for movies that contain lightning scenes.