Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character ~= nil
- local radio = game.Players.LocalPlayer.Character:WaitForChild("Radio")
- local sound = Instance.new("Sound",radio)
- sound.Volume=1
- sound.Pitch=1
- sound.Name=""
- sound.Looped=true
- sound.PlayOnRemove=false
- local player = game.Players.LocalPlayer
- local Format = "http://www.roblox.com/asset/?id=##ID##"
- local frame = script.Parent:WaitForChild("Frame")
- local radbutton = script.Parent:WaitForChild("RadioButton")
- frame:WaitForChild("Play").MouseButton1Click:connect(function()
- local input = tonumber(frame:WaitForChild("Input").Text)
- if input then
- sound:Stop()
- sound.SoundId=Format:gsub("##ID##", tostring(input))
- sound:Play()
- end
- end)
- frame:WaitForChild("Stop").MouseButton1Click:connect(function()
- sound:Stop()
- end)
- radbutton.MouseButton1Click:connect(function()
- frame.Visible=not frame.Visible
- end)
- if game:GetService("UserInputService").MouseEnabled == true then -- only non-mobile devices!
- radbutton.MouseEnter:connect(function()
- radbutton.ImageColor3=Color3.new(0,1,0)
- end)
- radbutton.MouseLeave:connect(function()
- radbutton.ImageColor3=Color3.new(1,1,1)
- end)
- end
- frame.Visible=false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement