local first = script:WaitForChild("Fantastic Adventure")
local second = script:WaitForChild("Hurricane Of Adventure")
local third = script:WaitForChild("Into The Adventure B")
local fourth = script:WaitForChild("Space Adventures ")
songs = {first, second, third, fourth}
while wait() do
local rand = math.random(1, 4)
local p = songs[rand]
p:Play()
wait(p.TimeLength)
end
COMMUNITY QUESTION
Why wont my randomly selected music play?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
tbh i think it has something to do with the p.TimeLength
You can use Sound.IsLoaded as a bool to check to see if it has loaded, or you can use the Sound.Loaded event.
Thanks for your help. I realised I just had to move the sound items to the workspace. (They were in the music script in ServerScriptService)