Ovovuevuevue

Music player V2 made by Mr_showcaser

Jan 3rd, 2025
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | Writing | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local IntroFrame = Instance.new("Frame")
  3. local IntroLabel = Instance.new("TextLabel")
  4. local Frame = Instance.new("Frame")
  5. local TextLabel = Instance.new("TextLabel")
  6. local TextBox = Instance.new("TextBox")
  7. local Button = Instance.new("TextButton")
  8. local CloseButton = Instance.new("TextButton")
  9. local TitleLabel = Instance.new("TextLabel")
  10. local Sound = Instance.new("Sound")
  11.  
  12. --
  13. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  14. ScreenGui.Name = "MusicPlayer"
  15.  
  16. --
  17. IntroFrame.Parent = ScreenGui
  18. IntroFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  19. IntroFrame.Size = UDim2.new(1, 0, 1, 0)
  20.  
  21. IntroLabel.Parent = IntroFrame
  22. IntroLabel.BackgroundTransparency = 1
  23. IntroLabel.Size = UDim2.new(1, 0, 1, 0)
  24. IntroLabel.Text = "Made by Mr. Showcaser"
  25. IntroLabel.Font = Enum.Font.SourceSansBold
  26. IntroLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  27. IntroLabel.TextScaled = true
  28.  
  29. --
  30. Frame.Parent = ScreenGui
  31. Frame.BackgroundColor3 = Color3.fromRGB(135, 206, 250) -- Sky blue background
  32. Frame.Position = UDim2.new(0.35, 0, 0.35, 0)
  33. Frame.Size = UDim2.new(0.3, 0, 0.4, 0) -- Adjusted height for the title
  34. Frame.Visible = false -- Initially hidden
  35.  
  36. --
  37. TitleLabel.Parent = Frame
  38. TitleLabel.BackgroundTransparency = 1
  39. TitleLabel.Size = UDim2.new(1, 0, 0.1, 0)
  40. TitleLabel.Text = "Music Player v2"
  41. TitleLabel.Font = Enum.Font.SourceSansBold
  42. TitleLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  43. TitleLabel.TextScaled = true
  44.  
  45. --
  46. TextLabel.Parent = Frame
  47. TextLabel.BackgroundTransparency = 1
  48. TextLabel.Position = UDim2.new(0, 0, 0.1, 0)
  49. TextLabel.Size = UDim2.new(1, 0, 0.1, 0)
  50. TextLabel.Text = "Enter Song ID:"
  51. TextLabel.Font = Enum.Font.SourceSansSemibold
  52. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  53. TextLabel.TextScaled = true
  54.  
  55. --
  56. TextBox.Parent = Frame
  57. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  58. TextBox.BackgroundTransparency = 0.5
  59. TextBox.Position = UDim2.new(0, 0, 0.2, 0)
  60. TextBox.Size = UDim2.new(1, 0, 0.15, 0)
  61. TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  62. TextBox.Font = Enum.Font.SourceSansSemibold
  63.  
  64. --
  65. Button.Parent = Frame
  66. Button.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  67. Button.Position = UDim2.new(0, 0, 0.4, 0)
  68. Button.Size = UDim2.new(0.5, 0, 0.15, 0)
  69. Button.Text = "Play"
  70. Button.TextColor3 = Color3.fromRGB(0, 0, 0)
  71.  
  72. --
  73. CloseButton.Parent = Frame
  74. CloseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  75. CloseButton.Position = UDim2.new(0.5, 0, 0.4, 0)
  76. CloseButton.Size = UDim2.new(0.5, 0, 0.15, 0)
  77. CloseButton.Text = "Close"
  78. CloseButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  79.  
  80. --
  81. Sound.Parent = game.Workspace
  82. Sound.Volume = 1
  83. Sound.PlayOnRemove = false
  84.  
  85. --
  86. Button.MouseButton1Click:Connect(function()
  87. local songId = TextBox.Text
  88. if songId ~= "" then
  89. Sound.SoundId = "rbxassetid://" .. songId
  90. Sound:Play()
  91. end
  92. end)
  93.  
  94. --
  95. CloseButton.MouseButton1Click:Connect(function()
  96. ScreenGui:Destroy()
  97. end)
  98.  
  99. --
  100. wait(3) -- Display the intro for 3 seconds
  101. IntroFrame:Destroy() --
  102. Frame.Visible = true --
  103.  
Advertisement
Add Comment
Please, Sign In to add comment