Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- script.Parent = player
- sound = Instance.new("Sound",player.Character.Head)
- sound.Volume = 10
- local beat = 0
- CV="Hot pink"
- local txt = Instance.new("BillboardGui", player.Character)
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "SourceSans"
- text.TextStrokeColor3 = Color3.new(0,0,0)
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=char
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=0.5
- v.CFrame=player.Character.Torso.CFrame
- v.BrickColor=BrickColor.new(CV)
- v.Transparency=1
- text.TextColor3 = Color3.new(157,205,255)
- v.Shape="Block"
- lo = Instance.new("Part",player.Character)
- lo.Size = Vector3.new(1,1,1)
- lo.Anchored = true
- lo.BrickColor = BrickColor.new(Color3.new(0,255,255))
- lo.TopSurface= "Smooth"
- lo.BottomSurface = "Smooth"
- lo.CanCollide = false
- txt.Adornee = lo
- newSound = coroutine.wrap(function(id)
- li = "http://www.roblox.com/asset/?id="..id
- Game:GetService("ContentProvider"):Preload(li)
- sound.SoundId = li
- sound:Play()
- end)
- game:GetService("RunService").Heartbeat:connect(function()
- lo.CFrame = CFrame.new(player.Character.Head.Position) + Vector3.new(0,5,0)
- lo.CFrame = lo.CFrame * CFrame.Angles(0,0,math.sin(1))
- end)
- updateVis = coroutine.wrap(function()
- while sound.IsPlaying do
- lo.Transparency=0.5
- lo.Size = Vector3.new(sound.PlaybackLoudness*.01,sound.PlaybackLoudness*.01,sound.PlaybackLoudness*.01)
- text.Text = "Value:\n "..sound.PlaybackLoudness.."\nTime: "..sound.TimeLength.."/"..sound.TimePosition.."\n Beat: \n"..beat
- if sound.PlaybackLoudness >= 500 then
- beat = beat +1
- lo.Material = "Neon"
- else
- lo.Material = "Plastic"
- end
- wait()
- end
- lo.Size = Vector3.new(0,0,0)
- beat = 0
- end)
- newSound("337742747")
- updateVis()
- player.Chatted:connect(function(m)
- if m:lower():match("#play ") then
- newSound(m:sub(7))
- updateVis()
- elseif m:lower():match("#loudness") then
- print("Loudness = "..sound.PlaybackLoudness)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement