Here is what you asked (also, I changed the cosine to a MouseX-Xpos).
Sound Effect by freesound_community from Pixabay Music (Welcome to the Green Room) by Toby Fox