I'm trying to make background music play, and it's not getting the children of the folder, "Music" which contains the songs. I used the function I made, nothing happened. I tried to print the songs. Nothing happened. Help please!
local Songs = script.Parent.Music:GetChildren() print(Songs) local function PlaySongs() for i, v in pairs(Songs) do v:Play() while v.Playing == true do wait() end end end PlaySongs() script.Parent.Music.MiiMusic.Played:Connect(function() PlaySongs() end)
You forgot to even call the function, I didn't see that but PlaySongs() should call it