Hey, i want to make simple play/stop music gui, but it play only one music from the list. I don't know what should i use here? I thought for loop is all what i needed, but i guess it need something more.
Script:
local sound = script.Parent.Parent.PlayableSound
local musicList = script.Parent.MusicList
for _, music in pairs(musicList:GetChildren()) do
sound.SoundId = "rbxassetid://".. music.Value
sound:Play()
end
Gui screenshot: https://gyazo.com/37911080a1bfe0fc192005acc1483104
SoundID is NumberValue. Maybe i need to rename SoundID to 1, 2, 3 etc. ?

5 comments
Oh.. okay. I know it's local script ;) Anyway i wonder it play them randomly? becuase i think it just start from the begin and keep going.
You didn't ask for them to be random in the question c:
Well, i asked "Why it won't select randomly sound values from the list?" :P But thank you, i'll figure it out by myself ;)
D:
You're right, sorry.