Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ocal ContentProvider = game:GetService('ContentProvider')
- local Sound = script.Parent:WaitForChild('Sound')
- local RunService = game:GetService('RunService')
- local Tracks = {316656692, 316656588}
- for _, Music in pairs(Tracks) do
- ContentProvider:Preload('rbxassetid://' .. Music)
- end
- Sound.SoundId = 'rbxassetid://' .. Tracks[math.random(1, #Tracks)]
- Sound:Play()
- Sound.Ended:connect(function(SoundId)
- repeat wait()
- Sound.SoundId = 'rbxassetid://' .. Tracks[math.random(1, #Tracks)]
- until
- Sound.SoundId ~= SoundId
- Sound:Play()
- end)
- while RunService.Stepped:wait() do
- script.Parent.Size = Vector3.new(Sound.PlaybackLoudness * .1, Sound.PlaybackLoudness * .1, Sound.PlaybackLoudness * .1)
- script.Parent.BrickColor = BrickColor.new(Sound.PlaybackLoudness * .003, Sound.PlaybackLoudness * .001, Sound.PlaybackLoudness * .001)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement