Hey, I got this script working with one song but if i add the second song it will crash after 30 seconds playing the first song.
Heres the code :
print 'Loading Playlist' ----------------------------------------------------------------------[[PLAYLIST]]----------------------------------------------------------------------------------------
song1 = "http://www.roblox.com/asset/?id=142720946" -- Insert an audio ID into this to add a sound song1 = "http://www.roblox.com/asset/?id=151394220" --song2 = "http://www.roblox.com/asset/?id=151394220" -- Add another song, but you'll need to do some work in the core of the script.
print 'Creating a Source of Audio' local music = Instance.new("Sound") -- This creates the sound. Since this is an Independent Variable, You should not change it at all. music.Archivable = true -- This MUST be true or you may have some problems.
print 'Inspecting the Configurable Variables'
----------------------------------------------------------------------CONFIGURABLE VARIABLES------------------------------------------------------------------------------ -----------------------If your a beginner scripter or your too lazy to do some work, this will be very useful to configure the script easily------------------------------
music.Parent = script.Parent.Playlist -- This is where the sound will be placed. If you want the sound to be heard everywhere, don't change it or put it into Workspace. -- If you want the sound to be heard in one spot, put it in a brick
music.Pitch = 1 -- Pitch manages the Pitch and Speed of the Sound. Pitch 1 is the normal sound, although some sounds have a problem that they are slow, increase this -- value so you can hear the original. There is a list of official pitches for songs named "Official Pitches". -- Adding multiple Pitches will require a bit of work, so if your a beginner, just stick with one pitch for now.
music.Volume = 1 -- This determines how loud the music will be. If this is being heard in one spot, this can configure how far you can hear the sound. -- The maximum is 1. Volumes set above 1 will be unaffected. -- For music heard across the game, if you have other sounds, put this to 0.9 or 1, otherwise you won't hear your music because of the other sounds
music.Looped = false -- This determines if the sound will repeat forever. If you have more than one sound, you MUST set this to false, otherwise you will be able to -- have problems with pausing and playing
music.Name = "Player" -- This determines the name of the source of Audio. Name it whatever you want.
print 'Loading RMP 1.0' while (true) do print 'Playing Tsunami Hardstyle [Remix Hardstyle]' music.SoundId = song1 -- This song Drags song1 from the playlist and plugs it into the SoundId so It'll play that sound.
music:play() wait(120) -- Put in the number of seconds of the total length of the song, or it will stop during the middle and it'll be crazy. music:stop() -- Stops the song so its safe for song #2 to play -- print 'Playing Sound 2' -- music.SoundId = song2 -- music:play() -- The loop continues depending on how many songs are in the playlist. -- wait(60)
print 'Playing Excision - X Rated ft Messinian'
music.SoundId = song2
music:play() wait(118) music:stop()
end
-- NOTE: If you don't hear music, you did set it up correctly, but it just didn't communicate correctly, this applies to all sounds.
-- How to fix this: -- Delete the sound -- Cut this script -- Paste it back in -- The sound should play!
