Just so you know @Pulloff the code above i posted does not work and i have the same issue i said before, and what you said was not the case.

- - - Updated - - -

Figured it out with the help of Xythe616, It was because the sound i uploaded had an index of 0.