Advertisement
TheUnknownDiscord

funny visulaizer

Oct 18th, 2021
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. local MaxLoudness2 = 100
  25. local MaxLoudness3 = 80
  26. while true do
  27. local Amplitude = math.clamp(music.PlaybackLoudness / MaxLoudness, 1, 10)
  28. local Amplitude2 = math.clamp(music.PlaybackLoudness / MaxLoudness2, 1, 10)
  29. local Amplitude3 = math.clamp(music.PlaybackLoudness / MaxLoudness3, 1, 10)
  30. part1.Size = Vector3.new(Amplitude, Amplitude2, Amplitude3)
  31. part1.Color = Color3.fromRGB(music.PlaybackLoudness/2.45,0,225)
  32. sizeevent:FireServer(part1.Size, part1.Color)
  33. task.wait()
  34. end
  35. ]],owner.PlayerGui)
  36. local billboard = Instance.new("BillboardGui", owner.character.Head)
  37. billboard.Adornee = owner.character.Head
  38. billboard.StudsOffset = Vector3.new(-1, 2.5, 0)
  39. billboard.Size = UDim2.new(2,0,1,0)
  40. billboard.Name = "chat"
  41. local text = Instance.new("TextBox", billboard)
  42. text.BackgroundTransparency = 1
  43. text.TextStrokeTransparency = 0
  44. text.TextSize = 25
  45. text.TextStrokeColor3 = Color3.fromRGB(0,0,0)
  46. text.Size = billboard.Size
  47. text.Font = "Arcade"
  48. text.MultiLine = true
  49. text.Text = "Now Playing: Nothing"
  50. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  51. local sizeevent = Instance.new("RemoteEvent", ReplicatedStorage)
  52. sizeevent.Name = "sizeEvent"
  53.  
  54. local function sizer(player, size, color)
  55. part1.Color = color
  56. part1.Size = size
  57. text.TextColor3 = color
  58. end
  59.  
  60. sizeevent.OnServerEvent:Connect(sizer)
  61.  
  62. owner.Chatted:connect(function(message)
  63. if message:sub(1,6) == "!Play " then
  64. music:Stop()
  65. music.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  66. music:Play()
  67. task.wait()
  68. text.Text = "Now Playing: "
  69. ..game:GetService("MarketplaceService"):GetProductInfo(tonumber(message:sub(6))).Name
  70. end
  71. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement