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

3 comments

0

tbh i think it has something to do with the p.TimeLength

0

You can use Sound.IsLoaded as a bool to check to see if it has loaded, or you can use the Sound.Loaded event.

0

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)