Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MarketPlaceService = game:GetService("MarketplaceService")
- local Songs = {
- 12345, --REPLACE 12345 WITH YOUR SONG ID
- 12345, --REPLACE 12345 WITH YOUR SONG ID
- 12345, --REPLACE 12345 WITH YOUR SONG ID
- 12345 --REPLACE 12345 WITH YOUR SONG ID
- }
- local SongObject = script.Parent.Song
- local SongLabel = script.Parent.SongLabel
- local SkipButton = script.Parent.SkipButton
- local MuteButton = script.Parent.MuteButton
- MuteButton.MouseButton1Click:Connect(function()
- if SongObject.Volume == 0.5 then
- SongObject.Volume = 0
- else
- SongObject.Volume = 0.5
- end
- end)
- SkipButton.MouseButton1Click:Connect(function()
- SongObject:Stop()
- end)
- while true do
- for i = 1, #Songs do
- local Song = Songs[i]
- local SongInfo = MarketPlaceService:GetProductInfo(Song)
- SongObject.SoundId = "rbxassetid://" .. Song
- SongObject:Play()
- SongLabel.Visible = true
- SongLabel.Text = SongInfo.Name
- wait(3)
- SongLabel.Visible = false
- repeat wait() until not SongObject.IsPlaying
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement