For some reason, I made this radio to globally play songs and loop, but it plays the first song then ends. I have absolutely no clue why its doing this. (I've already tried replacing Ended with Stopped, it came to no avail.) It gives no error in the console. I can't find out any working way to make it switch.
local id1 = "rbxassetid://215717985"
local id2 = "rbxassetid://193424165"
local id3 = "rbxassetid://263562509"
local id4 = "rbxassetid://466347974"
local id5 = "rbxassetid://512934146"
mori = game.Workspace.MORIOHRADIO
game.Workspace.MORIOHRADIO.SoundId = id1
mori:Play()
mori.Ended:Connect(function()
if game.Workspace.MORIOHRADIO.SoundId == id1 then
mori.SoundId = id2
mori:Play()
end
if game.Workspace.MORIOHRADIO.SoundId == id2 then
mori.SoundId = id3
mori:Play()
end
if mori.SoundId == id3 then
mori.SoundId = id4
mori:Play()
end
if mori.SoundId == id4 then
mori.SoundId = id5
mori:Play()
end
if mori.SoundId == id5 then
mori.SoundId = id1
mori:Play()
end
end)

1 comment
I Replicated your script, But in a Formal way Maybe this might help you? https://gyazo.com/3a2e32a6578ef93b812c3d85e10a3b80