Hello,

I am in the making of a Vibe Game, and inside the game I have this playlist for songs (credits to Feahren for the help into making it), however, as soon as a song ends, the other song plays at the timestamp of the other song ending, causing it to either start at the end and going mute or the song just being mute the whole time. Not sure what is causing this, here is the script.

local globalSong = workspace.CurrentGlobalSong

local songList = {
    1477278823, -- Song 1
    4546685302, -- Song 2
	3041605220, -- Song 3
	3254085729, -- Song 4
    1351415329, -- Song 5
	1780478151 -- Song 6
}

local function ascendThroughSongs()
    for _, songId in pairs(songList) do
        local song = "rbxassetid://"..songId
        globalSong:Stop()
        globalSong.SoundId = song
        repeat wait() until globalSong.IsLoaded
        globalSong:Play()
        globalSong.Ended:Wait()
    end
end

while wait() do ascendThroughSongs() end

6 comments

0

try setting globalSong.TimePosition to 0 on replay

0

Okay

0

That was the fix, thanks!

0

I love how most of the songs are lofi

0

^^^

0

Yeah :D It's for a vibe game!