daily pastebin goal
57%
SHARE
TWEET

Untitled

TestingForRoblox111 Aug 12th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Add your music IDs here, these are just random samples:
  2. local music = {
  3.     "181547615",
  4.     "130844430"
  5. }
  6.  
  7. local randomized = false --Change to true if you want the music randomized
  8.  
  9. --Do not touch unless you know what you're doing.
  10. local f = Instance.new("Folder"); f.Parent = workspace; f.Name = "music"
  11.     for i=1, #music do
  12.         local s = Instance.new("Sound");s.Parent = f;s.SoundId = "rbxassetid://"..music[i]
  13.     end
  14. if randomized == true then
  15.     while wait() do
  16.     local fc = f:GetChildren()
  17.     local rand = math.random(#fc)
  18.     fc[rand]:Play()
  19.     wait(0.5)
  20.     wait(fc[rand].TimeLength)
  21.     fc[rand]:Stop() --pause the music
  22.     end
  23. else
  24.     local fc = f:GetChildren()
  25.     while wait() do
  26. for i,v in pairs(fc) do
  27. v:Play()
  28. wait(0.5)
  29. wait(fc.TimeLength)
  30. fc:Stop()
  31. end
  32.     end
  33. end
  34. --by pyccknnxakep
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top