Advertisement
KlojoSS

PartBaseSound

May 3rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. -- Edited by Bram1507
  2.  
  3. wait()
  4.  
  5. ---- [[ GUI ]] ----
  6.  
  7. --[[local gui = Instance.new("ScreenGui")
  8. gui.Parent = game.Players.LocalPlayer.PlayerGui
  9. gui.Name = "SingGui"
  10. local frame = Instance.new("Frame")
  11. frame.Parent = gui
  12. frame.Name = "SongID's"
  13. local label1 = Instance.new("TextLabel")
  14. label1.Parent = frame]]--
  15.  
  16. ---- [[ Sound ]] ----
  17.  
  18. pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
  19. local plr = game.Players.Bram1507
  20. repeat wait() until plr.Character
  21. plr = game.Players.LocalPlayer
  22. char = plr.Character
  23. torso = char.Torso
  24. head = char.Head
  25.  
  26. sound = Instance.new("Sound", game.Workspace)
  27. sound.SoundId = "rbxassetid://"
  28. sound.Volume = 5
  29. sound:Play()
  30. sound.Looped = true
  31.  
  32. ---- [[ Part ]] ----
  33.  
  34. part = Instance.new("Part")
  35. part.Parent = game.Workspace
  36. part.Name = "MusicVisualiser"
  37. part.Anchored = true
  38. part.BrickColor = BrickColor.new("Baby blue")
  39. part.Material = "Neon"
  40. part.TopSurface = "Smooth"
  41. part.Shape = "Cylinder"
  42. part.Position = Vector3.new(-1, 0, 0)
  43. part.Orientation = Vector3.new(0, 0, 90)
  44.  
  45. ---- [[ Chat ]] ----
  46.  
  47. plr.Chatted:connect(function(message)
  48. if message:sub(1,4) == "Play" then
  49. sound:Stop()
  50. sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  51. sound:Play()
  52. end
  53. end)
  54.  
  55. ---- [[ Amount ]] ----
  56.  
  57. game:service'RunService'.RenderStepped:connect(function()
  58. part.Size = Vector3.new(0, sound.PlaybackLoudness, sound.PlaybackLoudness)
  59. part.Position = Vector3.new(-1, 0, 0)
  60. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement