How do you make a list of songs play in order

Hii, in a game I’m making I need some songs to play in order like a whole song plays and then a different one plays and so on, I have no idea how to make this, can someone help?

I would create a folder in ReplicatedStorage containing all of the songs that you would like to play, and then you can run a loop that plays each song and waits for it to finish before playing the next song.

local RepStore = game:GetService("ReplicatedStorage")
local Folder = RepStore:WaitForChild("folder name")
local Songs = Folder:GetChildren()

while true do
	for i = 1, #Songs do -- The amount of children inside the folder
		local Song = Songs[i]
		Song:Play()
		
		Song.Ended:Wait()
	end
end

I believe this should do the trick.

4 Likes

Thanks! I’ve been wanting to know-how for a while haha