Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make this play more than one song?

Asked by 8 years ago
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
0
Can you add some more info about what you are trying to do? User#5423 17 — 8y
0
make it play a random song from the table. CaikBall 10 — 8y
0
This does play a random song from the table? if you want to play another sound add another sound object? User#5423 17 — 8y
0
ok CaikBall 10 — 8y

1 answer

Log in to vote
0
Answered by
tber8 37
8 years ago

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

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 CaikBall 10 — 8y
0
nvm CaikBall 10 — 8y
Ad

Answer this question