How to make a Background Music List

I will to make a background Music List

Starting

First i need to make a LocalScript on a Player’s Client.

Available Parents

ReplicatedFirst
Players StarterPlayerScripts
StarterGui
StarterPack

i will to call the script ‘BGM’

Now i will to make a Folder Inside The LocalScript

I will to call it "Songs"

SongsList

Starting editing the LocalScript


The ““local SongsFolder”” says the song list folder

local SongsFolder = script['Songs'] -- Songs Folder Name

Making the Main Script

local SongsFolder = script['Songs'] -- Songs Folder Name

while wait() do
	for i,v in pairs(SongsFolder:GetChildren() ) do
		v:Play()
		v.Ended:Wait()
		v.TimePosition = 0
	end
end

This will make songs play in the order

I hope this worked to you

I dont showed so much images beacause this tutorial its a bit easy

6 Likes