Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make this play more than one song?

MusicTable = {
	"rbxassetid://184760055",
	"rbxassetid://1280470",
	"rbxassetid://1372262",
	"rbxassetid://144441258",
	"rbxassetid://155076373",
	"rbxassetid://340580406",
	"rbxassetid://145670303",
	"rbxassetid://204842078",
	"rbxassetid://278069764",
	"rbxassetid://152572669"
 }

while true do
script.Parent.Music:Stop()
current = math.random(1, #MusicTable)
script.Parent.Music.SoundId = MusicTable[current]
script.Parent.Music:Play()
wait(60)
end

4 comments

0

Can you add some more info about what you are trying to do?

0

make it play a random song from the table.

0

This does play a random song from the table? if you want to play another sound add another sound object?

0

ok

1 answer

maybe you should add a loop command. I don`t know much about it, but that's what I think may be wrong.

2 comments

0

i found the problem, it DOES play more than one song, except it has a 60 second wait time cus i put it at the end or something

0

nvm

This discussion is preserved as it was. New answers, comments, and votes are closed.