Audio stops playing after releasing my Mouse Button and pressing another key

Hi, I have a 5-second audio that I want to play if I click my left mouse button. However, whenever I try to press another key in my keyboard, the sounds stop playing. It does not finish playing the audio.

Thanks in advance :slight_smile:
Here’s my code:

public AudioClip mySound1;
AudioSource audio;

// Use this for initialization
void Start () {


	audio = GetComponent<AudioSource>();

}

// Update is called once per frame
void Update () {



	if (Input.GetButtonDown("Fire1")) {

			audio.PlayOneShot (mySound1);

	}

An audiosource can only play 1 sound at a time. You need to create a second audio source if you want to overlay the sounds.

wheres the rest of the code?

Ooh…okay thanks…I’ve attached this script to the FPS controller which also has the same audio source…:))