Advertisement
PR0J3CT11

Untitled

Jul 10th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. NLS([==[
  3.     while wait() do
  4.         game:service'Players'.LocalPlayer.Character.Event:FireServer(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Music.PlaybackLoudness)
  5.     end
  6. ]==], char)
  7.  
  8. --[[ Debounce ]]--
  9.  
  10. function debounce(func)
  11.     local isRunning = false
  12.     return function(...)
  13.         if not isRunning then
  14.             isRunning = true
  15.  
  16.             func(...)
  17.  
  18.             isRunning = false
  19.         end
  20.     end
  21. end
  22.  
  23. local player = owner
  24. local character = player.Character
  25. local humanoid_root_part = character.HumanoidRootPart
  26. local market_place_service = game:GetService("MarketplaceService")
  27.  
  28. function create_weld(parent, part0, part1, c0, c1)
  29.     local weld = Instance.new("Weld", parent)
  30.     weld.Part0 = part0
  31.     weld.Part1 = part1
  32.     weld.C0 = c0
  33.     weld.C1 = c1
  34. end
  35.  
  36. local radio = Instance.new("Part", character)
  37. radio.Name = "Radio"
  38. radio.Size = Vector3.new(3.2, 1.6, 1.2)
  39. radio.CFrame = CFrame.new(humanoid_root_part.CFrame.X + (-0.101), humanoid_root_part.CFrame.Y + 0.23, humanoid_root_part.CFrame.Z + 0.801)
  40. create_weld(radio, radio, humanoid_root_part, radio.CFrame:inverse(), humanoid_root_part.CFrame:inverse())
  41. radio.Orientation = Vector3.new(0, 180, 0)
  42. local radio_mesh = Instance.new("SpecialMesh", radio)
  43. radio_mesh.MeshId = "rbxassetid://212302951"
  44. radio_mesh.MeshType = Enum.MeshType.FileMesh
  45. radio_mesh.Offset = Vector3.new(0, 0, 0)
  46. radio_mesh.Scale = Vector3.new(4, 4, 4)
  47. radio_mesh.TextureId = "rbxassetid://212303049"
  48. radio_mesh.VertexColor = Vector3.new(1, 1, 1)
  49. local sparkles = Instance.new("Sparkles", radio)
  50. sparkles.SparkleColor = Color3.fromRGB(255, 255, 0)
  51. local sound = Instance.new("Sound", radio)
  52. sound.Playing = true
  53. sound.Looped = true
  54.  
  55. local RadioGui = Instance.new("ScreenGui")
  56. local Frame = Instance.new("Frame")
  57. local Title = Instance.new("TextLabel")
  58. local PlayButton = Instance.new("TextButton")
  59. local PauseButton = Instance.new("TextButton")
  60. local StopButton = Instance.new("TextButton")
  61. local SoundID = Instance.new("TextBox")
  62.  
  63. RadioGui.Name = "RadioGui"
  64. RadioGui.Parent = owner:WaitForChild("PlayerGui")
  65. RadioGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  66.  
  67. Frame.Parent = RadioGui
  68. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  69. Frame.BorderColor3 = Color3.new(0, 0, 0)
  70. Frame.BorderSizePixel = 0
  71. Frame.Position = UDim2.new(0.00642201817, 0, 0.61403507, 0)
  72. Frame.Size = UDim2.new(0.343119264, 0, 0.369005859, 0)
  73.  
  74. Title.Name = "Title"
  75. Title.Parent = Frame
  76. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  77. Title.BackgroundTransparency = 1
  78. Title.BorderColor3 = Color3.new(0, 0, 0)
  79. Title.BorderSizePixel = 0
  80. Title.Selectable = true
  81. Title.Size = UDim2.new(1, 0, 0.205652446, 0)
  82. Title.Font = Enum.Font.SourceSans
  83. Title.Text = "Radio GUI"
  84. Title.TextColor3 = Color3.new(0, 0, 0)
  85. Title.TextScaled = true
  86. Title.TextSize = 14
  87. Title.TextWrapped = true
  88.  
  89. PlayButton.Name = "PlayButton"
  90. PlayButton.Parent = Frame
  91. PlayButton.BackgroundColor3 = Color3.new(0.333333, 1, 0)
  92. PlayButton.BorderColor3 = Color3.new(0, 0, 0)
  93. PlayButton.BorderSizePixel = 0
  94. PlayButton.Position = UDim2.new(0, 0, 0.734284222, 0)
  95. PlayButton.Size = UDim2.new(0.328342259, 0, 0.265715837, 0)
  96. PlayButton.Font = Enum.Font.SourceSans
  97. PlayButton.Text = "PLAY"
  98. PlayButton.TextColor3 = Color3.new(1, 1, 1)
  99. PlayButton.TextScaled = true
  100. PlayButton.TextSize = 14
  101. PlayButton.TextWrapped = true
  102.  
  103. PauseButton.Name = "PauseButton"
  104. PauseButton.Parent = Frame
  105. PauseButton.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  106. PauseButton.BorderColor3 = Color3.new(0, 0, 0)
  107. PauseButton.BorderSizePixel = 0
  108. PauseButton.Position = UDim2.new(0.334224582, 0, 0.734284222, 0)
  109. PauseButton.Size = UDim2.new(0.328342259, 0, 0.265715837, 0)
  110. PauseButton.Font = Enum.Font.SourceSans
  111. PauseButton.Text = "PAUSE"
  112. PauseButton.TextColor3 = Color3.new(1, 1, 1)
  113. PauseButton.TextScaled = true
  114. PauseButton.TextSize = 14
  115. PauseButton.TextWrapped = true
  116.  
  117. StopButton.Name = "StopButton"
  118. StopButton.Parent = Frame
  119. StopButton.BackgroundColor3 = Color3.new(1, 0, 0)
  120. StopButton.BorderColor3 = Color3.new(0, 0, 0)
  121. StopButton.BorderSizePixel = 0
  122. StopButton.Position = UDim2.new(0.671122968, 0, 0.734284222, 0)
  123. StopButton.Size = UDim2.new(0.328342259, 0, 0.265715837, 0)
  124. StopButton.Font = Enum.Font.SourceSans
  125. StopButton.Text = "STOP"
  126. StopButton.TextColor3 = Color3.new(1, 1, 1)
  127. StopButton.TextScaled = true
  128. StopButton.TextSize = 14
  129. StopButton.TextWrapped = true
  130.  
  131. SoundID.Name = "SoundID"
  132. SoundID.Parent = Frame
  133. SoundID.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
  134. SoundID.BorderColor3 = Color3.new(0, 0, 0)
  135. SoundID.BorderSizePixel = 3
  136. SoundID.Position = UDim2.new(0.213903725, 0, 0.364500791, 0)
  137. SoundID.Size = UDim2.new(0.566310227, 0, 0.269043893, 0)
  138. SoundID.Font = Enum.Font.SourceSans
  139. SoundID.PlaceholderColor3 = Color3.new(1, 1, 1)
  140. SoundID.PlaceholderText = "Sound ID"
  141. SoundID.Text = ""
  142. SoundID.TextColor3 = Color3.new(1, 1, 1)
  143. SoundID.TextScaled = true
  144. SoundID.TextSize = 14
  145. SoundID.TextWrapped = true
  146.  
  147. local radio_billboard_gui = Instance.new("BillboardGui", character.Head)
  148. radio_billboard_gui.Name = "RadioBillboardGUI"
  149. radio_billboard_gui.Adornee = character.Head
  150. radio_billboard_gui.AlwaysOnTop = true
  151. radio_billboard_gui.ExtentsOffsetWorldSpace = Vector3.new(0, 9, 0)
  152. radio_billboard_gui.Size = UDim2.new(8, 0, 6, 0)
  153. local radio_billboard_gui_textlabel = Instance.new("TextLabel", radio_billboard_gui)
  154. radio_billboard_gui_textlabel.BackgroundTransparency = 1
  155. radio_billboard_gui_textlabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  156. radio_billboard_gui_textlabel.BorderSizePixel = 0
  157. radio_billboard_gui_textlabel.Size = UDim2.new(1, 0, 1, 0)
  158. radio_billboard_gui_textlabel.Text = "Right now playing: "
  159. radio_billboard_gui_textlabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  160. radio_billboard_gui_textlabel.TextSize = 18
  161. radio_billboard_gui_textlabel.TextWrapped = true
  162.  
  163. function zigzag(x)
  164.     return math.acos(math.cos(x * math.pi)) / math.pi
  165. end
  166.    
  167. PlayButton.MouseButton1Click:Connect(function()
  168.     if sound.IsPaused == true then
  169.         sound:Resume()
  170.     else
  171.         sound.SoundId = "rbxassetid://"..tonumber(SoundID.Text)
  172.         sound:Play()
  173.         local info = market_place_service:GetProductInfo(tonumber(SoundID.Text))
  174.         radio_billboard_gui_textlabel.Text = "Right now playing: "..info.Name
  175.     end
  176. end)
  177.    
  178. PauseButton.MouseButton1Click:Connect(function()
  179.     sound:Pause()
  180. end)
  181.  
  182. StopButton.MouseButton1Click:Connect(function()
  183.     sound:Stop()
  184. end)
  185.  
  186. local while_wait_do1 = coroutine.create(function()
  187.     local counter = 0
  188.     while wait(0.1) do
  189.         Frame.BackgroundColor3 = Color3.fromHSV(zigzag(counter), 1, 1)
  190.         counter = counter + 0.01
  191.     end
  192. end)
  193. coroutine.resume(while_wait_do1)
  194.  
  195. local while_wait_do2 = coroutine.create(function()
  196.     local counter = 0
  197.     while wait(0.1) do
  198.         radio_billboard_gui_textlabel.TextColor3 = Color3.fromHSV(zigzag(counter), 1, 1)
  199.         counter = counter + 0.01
  200.     end
  201. end)
  202. coroutine.resume(while_wait_do2)
  203.  
  204. local while_wait_do3 = coroutine.create(function()
  205.     while true do
  206.         wait(0.005)
  207.         radio_billboard_gui_textlabel.Rotation = radio_billboard_gui_textlabel.Rotation + 0.07
  208.     end
  209. end)
  210. coroutine.resume(while_wait_do3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement