Advertisement
Shocker130000

Shocker music player for sb

May 25th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 KB | None | 0 0
  1. -- oh ya by shocker
  2.  
  3. -- Objects
  4.  
  5. local HexTabsMusicPlayer = Instance.new("ScreenGui")
  6. local Framelol2 = Instance.new("Frame")
  7. local Frame_2 = Instance.new("Frame")
  8. local mselect = Instance.new("TextButton")
  9. local mbox = Instance.new("TextBox")
  10. local Volumes = Instance.new("TextBox")
  11. local Pitchs = Instance.new("TextBox")
  12. local Looping = Instance.new("TextBox")
  13. local Close = Instance.new("TextButton")
  14. local s = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  15. local f = Instance.new("Frame", s)
  16. local mselect = Instance.new("TextButton", f)
  17. local mbox = Instance.new("TextBox", f)
  18. local toggle = false
  19. local Player = game.Players.LocalPlayer
  20. local Character = Player.Character
  21.  
  22.  
  23. -- Properties
  24.  
  25. HexTabsMusicPlayer.Parent = game.Players.LocalPlayer.PlayerGui
  26.  
  27. Framelol2.Parent = HexTabsMusicPlayer
  28. Framelol2.BackgroundColor3 = Color3.new(1, 0, 0)
  29. Framelol2.Position = UDim2.new(0.440293938, 0, 0.442430705, 0)
  30. Framelol2.Size = UDim2.new(0, 196, 0, 181)
  31. Framelol2.Draggable = true
  32. Framelol2.Selectable = true
  33. Framelol2.Active = true
  34. Framelol2.Visible = true
  35.  
  36. Frame_2.Parent = Framelol2
  37. Frame_2.BackgroundColor3 = Color3.new(1, 1, 1)
  38. Frame_2.Position = UDim2.new(0.520408154, 0, 0, 0)
  39. Frame_2.Size = UDim2.new(0, 94, 0, 181)
  40.  
  41. mselect.Name = "mselect"
  42. mselect.Parent = Framelol2
  43. mselect.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  44. mselect.Position = UDim2.new(0.0331632644, 0, 0.773480654, 0)
  45. mselect.Size = UDim2.new(0, 184, 0, 34)
  46. mselect.Font = Enum.Font.Code
  47. mselect.Text = "Play"
  48. mselect.TextColor3 = Color3.new(1, 0.0745098, 0.0745098)
  49. mselect.TextSize = 20
  50.  
  51. mbox.Name = "mbox"
  52. mbox.Parent = Framelol2
  53. mbox.BackgroundColor3 = Color3.new(0, 0, 0)
  54. mbox.Position = UDim2.new(0.0331632644, 0, 0.149171278, 0)
  55. mbox.Size = UDim2.new(0, 184, 0, 27)
  56. mbox.Font = Enum.Font.Code
  57. mbox.PlaceholderText = ""
  58. mbox.Text = "Song ID"
  59. mbox.TextColor3 = Color3.new(1, 0.0509804, 0.0196078)
  60. mbox.TextSize = 17
  61.  
  62. Volumes.Name = "Volumes"
  63. Volumes.Parent = Framelol2
  64. Volumes.BackgroundColor3 = Color3.new(0, 0, 0)
  65. Volumes.Position = UDim2.new(0, 0, 0.359116018, 0)
  66. Volumes.Size = UDim2.new(0, 84, 0, 27)
  67. Volumes.Font = Enum.Font.Code
  68. Volumes.PlaceholderText = "10"
  69. Volumes.Text = "Volume"
  70. Volumes.TextColor3 = Color3.new(1, 0.0509804, 0.0196078)
  71. Volumes.TextSize = 17
  72.  
  73. Pitchs.Name = "Pitchs"
  74. Pitchs.Parent = Framelol2
  75. Pitchs.BackgroundColor3 = Color3.new(0, 0, 0)
  76. Pitchs.Position = UDim2.new(0.571428537, 0, 0.359116018, 0)
  77. Pitchs.Size = UDim2.new(0, 84, 0, 27)
  78. Pitchs.Font = Enum.Font.Code
  79. Pitchs.PlaceholderText = "1"
  80. Pitchs.Text = "Pitch"
  81. Pitchs.TextColor3 = Color3.new(1, 0.0509804, 0.0196078)
  82. Pitchs.TextSize = 17
  83.  
  84. Looping.Name = "Looping"
  85. Looping.Parent = Framelol2
  86. Looping.BackgroundColor3 = Color3.new(0, 0, 0)
  87. Looping.Position = UDim2.new(0.283163249, 0, 0.58011049, 0)
  88. Looping.Size = UDim2.new(0, 84, 0, 27)
  89. Looping.Font = Enum.Font.Code
  90. Looping.PlaceholderText = "true"
  91. Looping.Text = "Looped?"
  92. Looping.TextColor3 = Color3.new(1, 0.0509804, 0.0196078)
  93. Looping.TextSize = 17
  94.  
  95. Close.Name = "Close"
  96. Close.Parent = Framelol2
  97. Close.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  98. Close.Size = UDim2.new(0, 196, 0, 16)
  99. Close.Font = Enum.Font.Code
  100. Close.Text = "Close"
  101. Close.TextColor3 = Color3.new(1, 0.0745098, 0.0745098)
  102. Close.TextSize = 20
  103.  
  104. -- Scripts
  105. mselect.MouseButton1Click:connect(function()
  106. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = math.huge -- this is god
  107. if toggle == false then
  108. loadPart()
  109. toggle = true
  110. elseif toggle == true then
  111. loadPart()
  112. toggle = false
  113. end
  114. end)
  115.  
  116. function loadPart()
  117. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  118. if v.Name == "MusicItem" and v.ClassName == "Part" then
  119. v:Remove()
  120. end
  121. end
  122. local Part = Instance.new("Part", game.Players.LocalPlayer.Character)
  123. Part.CanCollide = false
  124. Part.Shape = "Block"
  125. Part.Anchored = false
  126. Part.Locked = true
  127. Part.Name = "MusicItem"
  128. Part.Transparency = 0
  129. Part.Material = "Neon"
  130. local CylinderMesh = Instance.new("CylinderMesh", Part)
  131.  
  132. Player=game:GetService("Players").LocalPlayer
  133. -----------------------------------------------------------------
  134. local p = game.Players.LocalPlayer
  135. local char = p.Character
  136. local torso = char.Torso
  137.  
  138. local Sound = Instance.new("Sound", Part)
  139. Sound.SoundId = "https://www.roblox.com/asset/?id="..mbox.Text
  140. Sound.EmitterSize = math.huge
  141. Sound.MaxDistance = math.huge
  142. Sound.Looped = Looping.Text
  143. Sound.Pitch = Pitchs.Text
  144. Sound.Name = "Sound"
  145. Sound.Volume = Volumes.Text
  146. Sound:Play()
  147.  
  148. Part.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position) * CFrame.new(0,-2.9,0)
  149. local bp = Instance.new("BodyPosition", Part)
  150. bp.Position = Character:FindFirstChild("Torso").CFrame * CFrame.new(0, -2.9, 0).p
  151. bp.MaxForce = Vector3.new(10000,10000,10000)
  152. bp.P = 100000
  153.  
  154. while true do
  155. bp.Position = Character:FindFirstChild("Torso").CFrame * CFrame.new(0, -2.9, 0).p
  156. local alg = math.floor(Sound.PlaybackLoudness)/50
  157. CylinderMesh.Scale = Vector3.new(.6+alg,.2,.6+alg)
  158. Part.BrickColor = BrickColor.Random()
  159. wait()
  160. end
  161. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement