Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Thanks for using this script
- --This script is made by Joriangames/Problox Studio Scripts
- --Want to know how to use this? Watch my tutorial: https://youtu.be/BR_sSdQ9t78
- local frame = script.Parent.Frame
- local musicBox = frame.MusicBox
- local close = frame.Close
- local playButton = frame.PlayButton
- local stopButton = frame.StopButton
- local sound = script.Parent.Sound
- local toggle = script.Parent.Toggle
- toggle.MouseButton1Click:Connect(function()
- if frame.Visible == true then
- frame.Visible = false
- else
- frame.Visible = true
- end
- end)
- close.MouseButton1Click:Connect(function()
- frame.Visible = false
- end)
- playButton.MouseButton1Click:Connect(function()
- local musicId = musicBox.Text
- print(musicId)
- sound.SoundId = "rbxassetid://"..musicId
- sound.Playing = true
- musicBox.Text = "Currently playing: "..musicId
- end)
- stopButton.MouseButton1Click:Connect(function()
- sound.Playing = false
- musicBox.Text = ""
- end)
Add Comment
Please, Sign In to add comment