Why is PreloadAsync yielding infinitly?
Whenever I run my music script, the PreloadAsync()
yields infinitly. No errors showed up, but a Print()
function I set up never fires and the music doesn't play. (The original script had about 8 songs, but I had to shorten it to make it fit.)
01 | content = game:GetService( "ContentProvider" ) |
03 | content:PreloadAsync(music) |
05 | local pick = math.random( 1 ,table.getn(music)) |
06 | local song = music [ pick ] |
07 | script.Music.SoundId = song |
09 | print ( "Music Playing" ) |
10 | wait(script.Music.TimeLength) |