Advertisement
KlojoSS

Baseplate music

May 3rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 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", head)
  27. sound.SoundId = "rbxassetid://"
  28. sound.Volume = 200
  29. sound:Play()
  30. sound.Looped = true
  31.  
  32. ---- [[ Part ]] ----
  33.  
  34. part = Instance.new("Part")
  35. part.Parent = game.Workspace
  36. part.Name = "WEEE"
  37. part.Anchored = true
  38.  
  39. ---- [[ Chat ]] ----
  40.  
  41. plr.Chatted:connect(function(message)
  42. if message:sub(1,4) == "Play" then
  43. sound:Stop()
  44. sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  45. sound:Play()
  46. end
  47. end)
  48.  
  49. ---- [[ Amount ]] ----
  50.  
  51. game:service'RunService'.RenderStepped:connect(function()
  52. part.Size = part.Position + Vector3.new(sound.PlaybackLoudness, sound.PlaybackLoudness/800, sound.PlaybackLoudness)
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement