Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Putting songs 1 and 2 together in my game?

can put a song in my game, but its not the full song I need to put the other part of the song in and play it right after its over. I don't know how to put the song in order part one to part 2 with it blending in not a big space in between songs.

1 answer

✓ Accepted answer

Simply do this, as an example if you were clicking a GUI to play these two songs as one:

Note that there should be two Song objects somewhere (defined in the code) and have the correct (but different, of course) Audio IDs in them.

TextButton = -- thetextbuttonyouclick
Song1 = -- location of song1, if global put in workspace
Song2 = -- location of song2, if global put in workspace

function PlaySongs()
Song1:Play() -- plays the first tune
wait() -- in parenthesis, put the time of the song
Song2:Stop() -- stops the first tune
wait(0.05)
Song2:Play() -- plays the second tune
wait() -- in parenthesis, put the time of the song
Song2:Stop() -- stops the second tune//not required if you want it to keep playing

TextButton.MouseButton1Click:connect(PlaySongs)

Please let me know if this is what you were looking for- if it wasn't, then please comment on my post, and if it was, then accept this answer!

Jack

This discussion is preserved as it was. New answers, comments, and votes are closed.