Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Made by Operation6
- --Change the ids if u want
- --Settings--
- --Feel free to edit the sond_ID, it is the songs that will play.--
- song_ID = {531754257,243372213,143959455,142435409,145144013,142295308,155319906,143204341,167769668,158789219,148321914,145168228,145761021,156151206,174359006,165755823,174742374,144174823,176424986,172692704,161103614,148559890,155729113} -- replace the numbers with the ID's of the songs you want. (the URL end number)
- --DONT TOUCH BELOW--
- randomizer = true -- set to true to make it in a random way, set to false and it is in order
- Wait_Time = 115 -- 120 is the max time for a sound/song. Add 5 seconds if you want a buffer between songs
- inc = .1 -- this is the increment of which the volume increases/decreases for fade in/out.
- --DONT TOUCH BELOW
- --functions and IDs--
- asset_ID = "http://www.roblox.com/asset/?id="
- function choose(tab) local obj = tab[math.random(1,#tab)] return obj end
- function play(s) if s:IsA("Sound") then local o = s.Volume s.Volume = 0 s:play() for i = 0,o,inc do wait() s.Volume = i end s.Volume = o end end
- function stop(s) if s:IsA("Sound") then local o = s.Volume for i = o,0,-inc do wait() s.Volume = i end s:stop() s.Volume = o end end
- song = Instance.new("Sound",workspace) song.Name = "MrRowPro's song player"
- --DONT TOUCH BELOW--
- --loop--
- counter = 1
- if #song_ID > 0 then
- while true do
- wait()
- if randomizer then song.SoundId = asset_ID..""..choose(song_ID) else song.SoundId = asset_ID..""..song_ID[counter] end
- play(song)
- wait(Wait_Time)
- stop(song)
- if counter >= #song_ID then counter = 1 else counter = counter + 1 end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement