The laser sounds in Star Wars were created by sound designer Ben Burtt using real-world recordings.
One of the most famous techniques involved hitting a metal cable & recording the vibrating sound. This unique “pew” effect that became the signature blaster noise.