Advertisement
AugusTH

Music Player (Raw)

Aug 19th, 2023 (edited)
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | None | 0 0
  1. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/Revenant", true))()
  2. Library.DefaultColor = Color3.fromRGB(255,0,0)
  3.  
  4. Library:Notification({
  5. Text = "Music Player Script By Augus X",
  6. Duration = 6
  7. })
  8.  
  9. wait (1)
  10.  
  11. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/Revenant", true))()
  12. Library.DefaultColor = Color3.fromRGB(255,0,0)
  13.  
  14. Library:Notification({
  15. Text = "I Hope You Will Enjoy ",
  16. Duration = 5
  17. })
  18.  
  19. ----------------------------
  20. wait (1)
  21.  
  22. local s = Instance.new("Sound")
  23.  
  24. s.Name = "Sound"
  25. s.SoundId = "http://www.roblox.com/asset/?id=7112183471"
  26. s.Volume = 4
  27. s.Looped = false
  28. s.archivable = false
  29.  
  30. s.Parent = game.Workspace
  31.  
  32. wait()
  33.  
  34. s:play()
  35.  
  36. -- Song Player GUI
  37. local gui = Instance.new("ScreenGui")
  38. gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  39.  
  40. -- Background Frame
  41. local background = Instance.new("Frame")
  42. background.Size = UDim2.new(0, 160, 0, 120)
  43. background.BackgroundColor3 = Color3.new(0, 0, 0)
  44. background.BorderColor3 = Color3.new(5, 0, 0)
  45. background.BackgroundTransparency = 0.2
  46. background.Position = UDim2.new(0.5, -100, 0.5, -50)
  47. background.Active = true
  48. background.Draggable = true
  49. background.Parent = gui
  50.  
  51. -- image
  52. local r = Instance.new("ImageLabel")
  53. r.Size = UDim2.new(0.5, 0, 0.4, 0)
  54. r.BackgroundColor3 = Color3.new(0, 0, 0)
  55. r.BorderColor3 = Color3.new(5, 0, 0)
  56. r.Position = UDim2.new(0.25, 0, 0, 0)
  57. r.Image = "rbxthumb://type=Asset&id=15892940241&w=150&h=150"
  58. r.Parent = background
  59.  
  60. -- Song ID Input Box
  61. local idBox = Instance.new("TextBox")
  62. idBox.Size = UDim2.new(0.8, 0, 0.2, 0)
  63. idBox.BackgroundColor3 = Color3.new(1, 1, 1)
  64. idBox.Position = UDim2.new(0.10, 0, 0.45, 0)
  65. idBox.Text = "15689459174"
  66. idBox.Parent = background
  67.  
  68. -- Play Button
  69. local playButton = Instance.new("TextButton")
  70. playButton.Size = UDim2.new(0.4, 0, 0.2, 0)
  71. playButton.BackgroundColor3 = Color3.new(1, 1, 1)
  72. playButton.Position = UDim2.new(0.1, 0, 0.7, 0)
  73. playButton.Text = "Play"
  74. playButton.Parent = background
  75.  
  76. -- Stop Button
  77. local stopButton = Instance.new("TextButton")
  78. stopButton.Size = UDim2.new(0.4, 0, 0.2, 0)
  79. stopButton.BackgroundColor3 = Color3.new(1, 1, 1)
  80. stopButton.Position = UDim2.new(0.5, 0, 0.7, 0)
  81. stopButton.Text = "Stop"
  82. stopButton.Parent = background
  83.  
  84. -- Audio Instance
  85. local audio = Instance.new("Sound")
  86. audio.Parent = game.Workspace
  87.  
  88. -- Play Button Functionality
  89. playButton.MouseButton1Click:Connect(function()
  90. local id = tonumber(idBox.Text)
  91. if id then
  92. audio.SoundId = "rbxassetid://"..id
  93. audio:Play()
  94. end
  95. end)
  96.  
  97. -- Stop Button Functionality
  98. stopButton.MouseButton1Click:Connect(function()
  99. audio:Stop()
  100. end)
  101.  
  102. -- Cr Button Functionality
  103. Cr.MouseButton1Click:Connect(function()
  104. setclipboard("https://discord.gg/bhDDuHUW59")
  105.  
  106. game.StarterGui:SetCore("SendNotification", {
  107. Title = "Copy Discord Link";
  108. Text = "https://discord.gg/bhDDuHUW59";
  109. Icon = "";
  110. Duration = "2";
  111. })
  112. end)
  113.  
  114.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement