Advertisement
spacemonkey3591

Untitled

Feb 26th, 2018
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2. script.Parent = player
  3. sound = Instance.new("Sound",player.Character.Head)
  4. sound.Volume = 10
  5. local beat = 0
  6.  
  7. CV="Hot pink"
  8.  
  9. local txt = Instance.new("BillboardGui", player.Character)
  10. txt.Name = "_status"
  11. txt.Size = UDim2.new(2, 0, 1.2, 0)
  12. txt.StudsOffset = Vector3.new(-9, 8, 0)
  13. local text = Instance.new("TextLabel", txt)
  14. text.Size = UDim2.new(10, 0, 7, 0)
  15. text.FontSize = "Size24"
  16. text.TextScaled = true
  17. text.TextTransparency = 0
  18. text.BackgroundTransparency = 1
  19. text.TextTransparency = 0
  20. text.TextStrokeTransparency = 0
  21. text.Font = "SourceSans"
  22. text.TextStrokeColor3 = Color3.new(0,0,0)
  23.  
  24. v=Instance.new("Part")
  25. v.Name = "ColorBrick"
  26. v.Parent=char
  27. v.FormFactor="Symmetric"
  28. v.Anchored=true
  29. v.CanCollide=false
  30. v.BottomSurface="Smooth"
  31. v.TopSurface="Smooth"
  32. v.Size=Vector3.new(10,5,3)
  33. v.Transparency=0.5
  34. v.CFrame=player.Character.Torso.CFrame
  35. v.BrickColor=BrickColor.new(CV)
  36. v.Transparency=1
  37. text.TextColor3 = Color3.new(157,205,255)
  38. v.Shape="Block"
  39.  
  40.  
  41.  
  42. lo = Instance.new("Part",player.Character)
  43. lo.Size = Vector3.new(1,1,1)
  44. lo.Anchored = true
  45. lo.BrickColor = BrickColor.new(Color3.new(0,255,255))
  46. lo.TopSurface= "Smooth"
  47. lo.BottomSurface = "Smooth"
  48. lo.CanCollide = false
  49. txt.Adornee = lo
  50.  
  51. newSound = coroutine.wrap(function(id)
  52. li = "http://www.roblox.com/asset/?id="..id
  53. Game:GetService("ContentProvider"):Preload(li)
  54. sound.SoundId = li
  55. sound:Play()
  56. end)
  57.  
  58. game:GetService("RunService").Heartbeat:connect(function()
  59. lo.CFrame = CFrame.new(player.Character.Head.Position) + Vector3.new(0,5,0)
  60. lo.CFrame = lo.CFrame * CFrame.Angles(0,0,math.sin(1))
  61. end)
  62.  
  63. updateVis = coroutine.wrap(function()
  64. while sound.IsPlaying do
  65. lo.Transparency=0.5
  66. lo.Size = Vector3.new(sound.PlaybackLoudness*.01,sound.PlaybackLoudness*.01,sound.PlaybackLoudness*.01)
  67. text.Text = "Value:\n "..sound.PlaybackLoudness.."\nTime: "..sound.TimeLength.."/"..sound.TimePosition.."\n Beat: \n"..beat
  68. if sound.PlaybackLoudness >= 500 then
  69. beat = beat +1
  70. lo.Material = "Neon"
  71. else
  72. lo.Material = "Plastic"
  73. end
  74. wait()
  75. end
  76. lo.Size = Vector3.new(0,0,0)
  77. beat = 0
  78. end)
  79.  
  80. newSound("337742747")
  81. updateVis()
  82.  
  83. player.Chatted:connect(function(m)
  84. if m:lower():match("#play ") then
  85. newSound(m:sub(7))
  86. updateVis()
  87. elseif m:lower():match("#loudness") then
  88. print("Loudness = "..sound.PlaybackLoudness)
  89. end
  90. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement