This is my music player and it only plays one song but doesnt repeat, im not sure what the issue is
local SoundIds = {
'http://www.roblox.com/asset/?id=243372213',
'http://www.roblox.com/asset/?id=319758951',
'http://www.roblox.com/asset/?id=236896548',
'http://www.roblox.com/asset/?id=181547615',
'http://www.roblox.com/asset/?id=283801001',
'http://www.roblox.com/asset/?id=306412637',
}
while true do --insert and play sound
Music.SoundId = SoundIds[math.random(1, #SoundIds)]
Music.Volume = 1
wait(1)
Music:Play()
Music.Ended:wait() -- Waits for the music to end to play the next music audio
wait(1)
Music:Stop()
end

1 comment
You're probably not using a LocalScript meaning on line 16 it keeps on waiting because Scripts can't access that Event on sounds, only Local Scripts can. You're also not defining Music.