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

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

Asked by 5 years ago

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?

0
Please, use script blocks for next time HaveASip 494 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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
0
Oh! Thank you! I didn't know there was a command for "Ended". Riftery 0 — 5y
0
No problem! ieatandisbaconhair 77 — 5y
0
ew User#19524 175 — 5y
Ad

Answer this question