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

Is there a more efficient way to make a "playlist"?

So far, this works, but I don't have a way to make each song play exactly when the last one ends.

while true do script.Parent.Sound.Playing = true wait(5) script.Parent.Sound2.Playing = true wait(5) script.Parent.Sound3.Playing = true wait(5) end

Did I already make it the best way possible, or is there a better way that I just haven't thought about?

1 comment

0

Please, use script blocks for next time

1 answer

✓ Accepted answer

theres is a better way to do this.

while true do
script.Parent.Sound.Playing = true 
script.Parent.Sound.Ended:wait(5)
script.Parent.Sound2.Playing = true
script.Parent.Sound2.Ended:wait(5)
script.Parent.Sound3.Playing = true 
script.Parent.Sound3.Ended:wait(5)
end

3 comments

0

Oh! Thank you! I didn't know there was a command for "Ended".

0

No problem!

0

ew

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