I have a sound in the Workspace with a script in. I have a Table / Arrary inside the script containing 3 music IDs. How do I make sure the same song doesn't play again after it playing? Here :
Music = {177226555,156637449,186747495}
while true do
script.Parent:Stop()
script.Parent.SoundId = ""
script.Parent.SoundId = "http://www.roblox.com/Asset/?id="..Music[math.random(1,#Music)]
script.Parent:Play()
wait(script.Parent.TimeLength)
end

3 comments
Thanks for that! I was thinking maybe something along the lines of that, but just didn't know how to piece it together.
That's fine. By the way, instead of "http://www.roblox.com/Asset/?id=", you can just use "rbxassetid://", if you didn't know already
Alright, thanks.