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

Playlist in game? [closed]

Asked by 9 years ago

How would I add a playlist of songs to my game? One that would loop through different songs?

Closed as Not Constructive by adark and BlueTaslem

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

While this isn't technically a 'make me this' request, this isn't a good question for this site.

If you already know how to play a single Sound, look into Loops for playing multiple sounds consecutively. Specifically, you'll want an infinite while loop., usually referred to in ROBLOX as a while true do loop:

while true do
    script.Parent.Sound1:Play()
    wait(15) --assuming Sound1 is 15 seconds long
    script.Parent.Sound2:Play()
    wait(23)
    --and so on
end
Ad