Example 1 played, 2 plays and goes on chronologically..
local Songs = {1, 2, 3, 4, 5} -- just an example lol
local Play = true
local ID = 000000
function New()
ID = nil
ID = Songs[math.random(1,#Songs)] -- i don't want dis :I(
end
game:GetService("RunService").Heartbeat:connect(function()
if Play == true then
New()
Play = false
script.Parent.Parent.Background:Pause()
script.Parent.Parent.Background.SoundId="rbxassetid://"..ID
wait()
script.Parent.Parent.Background:Play()
wait(script.Parent.Parent.Background.TimeLength)
script.Parent.Parent.Background:Pause()
Play = true
end
end)

2 comments
Wait wait, when the last song is like 5 it still goes +1 so.... how do u fix that ?
if currentSong > 5 then currentSong = 1 end