Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local maxsize = 1.4
- local divider = 45
- local cam = workspace.CurrentCamera
- local root = CFrame.new(87,10,-100)* CFrame.Angles(0,math.rad(180),0)
- wait()
- local blurting = Instance.new("BlurEffect",game.Lighting)
- blurting.Size = 0
- local bloomting = Instance.new("BloomEffect",game.Lighting)
- bloomting.Intensity = 0
- bloomting.Threshold = 0.980
- local starterGui = game:GetService('StarterGui')
- starterGui:SetCore("TopbarEnabled", false)
- local updown = 0
- local rs = game:GetService("RunService").RenderStepped
- delay(0,function()
- while rs:wait() do
- print("ok")
- local vol = workspace.Sound.PlaybackLoudness
- updown = updown + 1
- if updown > 1 then
- updown = -1
- elseif updown >= 2 or updown == 0 then
- updown = 1
- end
- local shake = (vol/90)*updown
- local rawfshake = (1 - math.max(1,shake))*-1
- local finalshake = (1 - math.max(1,shake))*updown
- local finalshake2 = math.random(-rawfshake,rawfshake)*1.5
- local finalshake3 = math.random(-rawfshake,rawfshake)*1.5
- blurting.Size = vol/80
- bloomting.Intensity = vol/700
- end
- end)
- local p = game.Players.LocalPlayer
- local c = p.Character
- local main = Instance.new("Part",c)
- local sound = Instance.new("Sound")
- sound.Parent = workspace
- sound.Playing = true
- sound.Looped = true
- sound.SoundId = "rbxassetid://385832253"
- local vol = sound.PlaybackLoudness
- local brix = {}
- for i = 1,80 do
- local brik = Instance.new("Part",main)
- brik.Anchored = true
- brik.Size = Vector3.new(2,2,2)
- brik.CFrame = main.CFrame * CFrame.new(i*2.1,0,0)
- brik.Material = "Neon"
- brik.BrickColor = BrickColor.new("Really black")
- local sl = Instance.new("SelectionBox")
- sl.Parent = brik
- sl.Adornee = brik
- table.insert(brix,brik)
- end
- local MPL,PL
- MPL = 0
- local smallest = nil
- smallest = brix[1]
- function check(num,size,divider)
- local sizeofbar = brix[num].Size.Y
- if size>sizeofbar then
- local cf = brix[num].CFrame
- local briksize = brix[num].Size
- brix[num].Size = brix[num].Size:lerp(briksize+Vector3.new(0,(size)/divider,0),.2)
- brix[num].CFrame = cf
- end
- end
- p.Chatted:connect(function(m)
- if m == ":stop" then
- sound:Destroy()
- for I,v in pairs(brix) do
- v:Destroy()
- end
- end
- end)
- function makebar(size)
- PL = sound.PlaybackLoudness
- MPL = math.max(PL,MPL)
- PL = PL/MPL
- local one = math.floor(PL*(#brix))
- if one > .1 then
- local briksize = brix[one].Size
- delay(0,function()
- for i = 1,3 do
- brix[one].Size = brix[one].Size:lerp(briksize + Vector3.new(0,PL*size,0),.2)
- end
- end)
- end
- for i = 1,17 do
- if brix[one-i] then
- check(one-i,size,i)
- end
- if brix[one+i] then
- check(one+i,size,i)
- end
- end
- end
- rs:connect(function()
- local vol = sound.PlaybackLoudness
- for i = 1,#brix do
- brix[i].Size =brix[i].Size:lerp(Vector3.new(2,0,2),.2)
- end
- --makebar(20)
- makebar((vol^maxsize)/divider)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement