Advertisement
Its_YeBoi

Untitled

Mar 18th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. ocal ContentProvider = game:GetService('ContentProvider')
  2. local Sound = script.Parent:WaitForChild('Sound')
  3. local RunService = game:GetService('RunService')
  4. local Tracks = {316656692, 316656588}
  5.  
  6. for _, Music in pairs(Tracks) do
  7. ContentProvider:Preload('rbxassetid://' .. Music)
  8. end
  9.  
  10. Sound.SoundId = 'rbxassetid://' .. Tracks[math.random(1, #Tracks)]
  11. Sound:Play()
  12. Sound.Ended:connect(function(SoundId)
  13. repeat wait()
  14. Sound.SoundId = 'rbxassetid://' .. Tracks[math.random(1, #Tracks)]
  15. until
  16. Sound.SoundId ~= SoundId
  17. Sound:Play()
  18. end)
  19.  
  20. while RunService.Stepped:wait() do
  21. script.Parent.Size = Vector3.new(Sound.PlaybackLoudness * .1, Sound.PlaybackLoudness * .1, Sound.PlaybackLoudness * .1)
  22. script.Parent.BrickColor = BrickColor.new(Sound.PlaybackLoudness * .003, Sound.PlaybackLoudness * .001, Sound.PlaybackLoudness * .001)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement