Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NLS([==[
- while wait() do
- game:service'Players'.LocalPlayer.Character.Event:FireServer(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Music.PlaybackLoudness)
- end
- ]==], char)
- --[[ Debounce ]]--
- function debounce(func)
- local isRunning = false
- return function(...)
- if not isRunning then
- isRunning = true
- func(...)
- isRunning = false
- end
- end
- end
- local player = owner
- local character = player.Character
- local humanoid_root_part = character.HumanoidRootPart
- local market_place_service = game:GetService("MarketplaceService")
- function create_weld(parent, part0, part1, c0, c1)
- local weld = Instance.new("Weld", parent)
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C0 = c0
- weld.C1 = c1
- end
- local radio = Instance.new("Part", character)
- radio.Name = "Radio"
- radio.Size = Vector3.new(3.2, 1.6, 1.2)
- 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)
- create_weld(radio, radio, humanoid_root_part, radio.CFrame:inverse(), humanoid_root_part.CFrame:inverse())
- radio.Orientation = Vector3.new(0, 180, 0)
- local radio_mesh = Instance.new("SpecialMesh", radio)
- radio_mesh.MeshId = "rbxassetid://212302951"
- radio_mesh.MeshType = Enum.MeshType.FileMesh
- radio_mesh.Offset = Vector3.new(0, 0, 0)
- radio_mesh.Scale = Vector3.new(4, 4, 4)
- radio_mesh.TextureId = "rbxassetid://212303049"
- radio_mesh.VertexColor = Vector3.new(1, 1, 1)
- local sparkles = Instance.new("Sparkles", radio)
- sparkles.SparkleColor = Color3.fromRGB(255, 255, 0)
- local sound = Instance.new("Sound", radio)
- sound.Playing = true
- sound.Looped = true
- local RadioGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local PlayButton = Instance.new("TextButton")
- local PauseButton = Instance.new("TextButton")
- local StopButton = Instance.new("TextButton")
- local SoundID = Instance.new("TextBox")
- RadioGui.Name = "RadioGui"
- RadioGui.Parent = owner:WaitForChild("PlayerGui")
- RadioGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = RadioGui
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BorderColor3 = Color3.new(0, 0, 0)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.00642201817, 0, 0.61403507, 0)
- Frame.Size = UDim2.new(0.343119264, 0, 0.369005859, 0)
- Title.Name = "Title"
- Title.Parent = Frame
- Title.BackgroundColor3 = Color3.new(1, 1, 1)
- Title.BackgroundTransparency = 1
- Title.BorderColor3 = Color3.new(0, 0, 0)
- Title.BorderSizePixel = 0
- Title.Selectable = true
- Title.Size = UDim2.new(1, 0, 0.205652446, 0)
- Title.Font = Enum.Font.SourceSans
- Title.Text = "Radio GUI"
- Title.TextColor3 = Color3.new(0, 0, 0)
- Title.TextScaled = true
- Title.TextSize = 14
- Title.TextWrapped = true
- PlayButton.Name = "PlayButton"
- PlayButton.Parent = Frame
- PlayButton.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- PlayButton.BorderColor3 = Color3.new(0, 0, 0)
- PlayButton.BorderSizePixel = 0
- PlayButton.Position = UDim2.new(0, 0, 0.734284222, 0)
- PlayButton.Size = UDim2.new(0.328342259, 0, 0.265715837, 0)
- PlayButton.Font = Enum.Font.SourceSans
- PlayButton.Text = "PLAY"
- PlayButton.TextColor3 = Color3.new(1, 1, 1)
- PlayButton.TextScaled = true
- PlayButton.TextSize = 14
- PlayButton.TextWrapped = true
- PauseButton.Name = "PauseButton"
- PauseButton.Parent = Frame
- PauseButton.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- PauseButton.BorderColor3 = Color3.new(0, 0, 0)
- PauseButton.BorderSizePixel = 0
- PauseButton.Position = UDim2.new(0.334224582, 0, 0.734284222, 0)
- PauseButton.Size = UDim2.new(0.328342259, 0, 0.265715837, 0)
- PauseButton.Font = Enum.Font.SourceSans
- PauseButton.Text = "PAUSE"
- PauseButton.TextColor3 = Color3.new(1, 1, 1)
- PauseButton.TextScaled = true
- PauseButton.TextSize = 14
- PauseButton.TextWrapped = true
- StopButton.Name = "StopButton"
- StopButton.Parent = Frame
- StopButton.BackgroundColor3 = Color3.new(1, 0, 0)
- StopButton.BorderColor3 = Color3.new(0, 0, 0)
- StopButton.BorderSizePixel = 0
- StopButton.Position = UDim2.new(0.671122968, 0, 0.734284222, 0)
- StopButton.Size = UDim2.new(0.328342259, 0, 0.265715837, 0)
- StopButton.Font = Enum.Font.SourceSans
- StopButton.Text = "STOP"
- StopButton.TextColor3 = Color3.new(1, 1, 1)
- StopButton.TextScaled = true
- StopButton.TextSize = 14
- StopButton.TextWrapped = true
- SoundID.Name = "SoundID"
- SoundID.Parent = Frame
- SoundID.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
- SoundID.BorderColor3 = Color3.new(0, 0, 0)
- SoundID.BorderSizePixel = 3
- SoundID.Position = UDim2.new(0.213903725, 0, 0.364500791, 0)
- SoundID.Size = UDim2.new(0.566310227, 0, 0.269043893, 0)
- SoundID.Font = Enum.Font.SourceSans
- SoundID.PlaceholderColor3 = Color3.new(1, 1, 1)
- SoundID.PlaceholderText = "Sound ID"
- SoundID.Text = ""
- SoundID.TextColor3 = Color3.new(1, 1, 1)
- SoundID.TextScaled = true
- SoundID.TextSize = 14
- SoundID.TextWrapped = true
- local radio_billboard_gui = Instance.new("BillboardGui", character.Head)
- radio_billboard_gui.Name = "RadioBillboardGUI"
- radio_billboard_gui.Adornee = character.Head
- radio_billboard_gui.AlwaysOnTop = true
- radio_billboard_gui.ExtentsOffsetWorldSpace = Vector3.new(0, 9, 0)
- radio_billboard_gui.Size = UDim2.new(8, 0, 6, 0)
- local radio_billboard_gui_textlabel = Instance.new("TextLabel", radio_billboard_gui)
- radio_billboard_gui_textlabel.BackgroundTransparency = 1
- radio_billboard_gui_textlabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
- radio_billboard_gui_textlabel.BorderSizePixel = 0
- radio_billboard_gui_textlabel.Size = UDim2.new(1, 0, 1, 0)
- radio_billboard_gui_textlabel.Text = "Right now playing: "
- radio_billboard_gui_textlabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- radio_billboard_gui_textlabel.TextSize = 18
- radio_billboard_gui_textlabel.TextWrapped = true
- function zigzag(x)
- return math.acos(math.cos(x * math.pi)) / math.pi
- end
- PlayButton.MouseButton1Click:Connect(function()
- if sound.IsPaused == true then
- sound:Resume()
- else
- sound.SoundId = "rbxassetid://"..tonumber(SoundID.Text)
- sound:Play()
- local info = market_place_service:GetProductInfo(tonumber(SoundID.Text))
- radio_billboard_gui_textlabel.Text = "Right now playing: "..info.Name
- end
- end)
- PauseButton.MouseButton1Click:Connect(function()
- sound:Pause()
- end)
- StopButton.MouseButton1Click:Connect(function()
- sound:Stop()
- end)
- local while_wait_do1 = coroutine.create(function()
- local counter = 0
- while wait(0.1) do
- Frame.BackgroundColor3 = Color3.fromHSV(zigzag(counter), 1, 1)
- counter = counter + 0.01
- end
- end)
- coroutine.resume(while_wait_do1)
- local while_wait_do2 = coroutine.create(function()
- local counter = 0
- while wait(0.1) do
- radio_billboard_gui_textlabel.TextColor3 = Color3.fromHSV(zigzag(counter), 1, 1)
- counter = counter + 0.01
- end
- end)
- coroutine.resume(while_wait_do2)
- local while_wait_do3 = coroutine.create(function()
- while true do
- wait(0.005)
- radio_billboard_gui_textlabel.Rotation = radio_billboard_gui_textlabel.Rotation + 0.07
- end
- end)
- coroutine.resume(while_wait_do3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement