Advertisement
TheUnknownDiscord

visualizer

Sep 14th, 2021 (edited)
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. part1 = Instance.new("Part", owner.Character)
  2. part1.Massless = true
  3. part1.BottomSurface = Enum.SurfaceType.Smooth
  4. part1.TopSurface = Enum.SurfaceType.Smooth
  5. part1.Name = "partlol"
  6. wait()
  7. music = Instance.new("Sound", owner.Character.Head)
  8. music.SoundId = "rbxassetid://"
  9. music.Volume = 1
  10. music.Looped = true
  11. music:Play()
  12. music.Name = "Themusic"
  13. Weld4 = Instance.new("Weld", owner.Character.Head)
  14. Weld4.Part0 = part1
  15. Weld4.Part1 = owner.Character.Head
  16. Weld4.C0 = CFrame.new(0,-5,0)
  17. NLS([[
  18. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  19. local sizeevent = ReplicatedStorage:WaitForChild("sizeEvent")
  20.  
  21. local part1 = owner.Character:WaitForChild("partlol")
  22. local music = owner.Character.Head:WaitForChild("Themusic")
  23. local MaxLoudness = 175
  24. while true do
  25. local Amplitude = math.clamp(music.PlaybackLoudness / MaxLoudness, 1, 10)
  26. part1.Size = Vector3.new(Amplitude, Amplitude, Amplitude)
  27. part1.Color = Color3.fromRGB(music.PlaybackLoudness/2.45,0,225)
  28. sizeevent:FireServer(part1.Size, part1.Color)
  29. task.wait()
  30. end
  31. ]],owner.PlayerGui)
  32. local billboard = Instance.new("BillboardGui", owner.character.Head)
  33. billboard.Adornee = owner.character.Head
  34. billboard.StudsOffset = Vector3.new(-1, 2.5, 0)
  35. billboard.Size = UDim2.new(2,0,1,0)
  36. billboard.Name = "chat"
  37. local text = Instance.new("TextBox", billboard)
  38. text.BackgroundTransparency = 1
  39. text.TextStrokeTransparency = 0
  40. text.TextSize = 25
  41. text.TextStrokeColor3 = Color3.fromRGB(0,0,0)
  42. text.Size = billboard.Size
  43. text.Font = "Arcade"
  44. text.MultiLine = true
  45. text.Text = "Now Playing: Nothing"
  46. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  47. local sizeevent = Instance.new("RemoteEvent", ReplicatedStorage)
  48. sizeevent.Name = "sizeEvent"
  49.  
  50. local function sizer(player, size, color)
  51. part1.Color = color
  52. part1.Size = size
  53. text.TextColor3 = color
  54. end
  55.  
  56. sizeevent.OnServerEvent:Connect(sizer)
  57.  
  58. owner.Chatted:connect(function(message)
  59. if message:sub(1,6) == "!Play " then
  60. music:Stop()
  61. music.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  62. music:Play()
  63. task.wait()
  64. text.Text = "Now Playing: "
  65. ..game:GetService("MarketplaceService"):GetProductInfo(tonumber(message:sub(6))).Name
  66. end
  67. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement