I have a SurfaceGui and I need a script so when I click on a button it plays an song.
COMMUNITY QUESTION
I need help on a music Gui?
1 answer
function GUIClick()
game.Workspace.MUSIC NAME:Play()
end
script.Parent.MouseButton1Click:connect(GUIClick)
Make sure the "MUSIC NAME" is replaced with the Music file's name and is in workspace. And make sure the script is a Local Script so only the player who clicked it can hear it.
This discussion is preserved as it was. New answers, comments, and votes are closed.

13 comments
Thanks
Remember to put good rep on me :3
I need 1 reputation to put vote up or down
Oh qq
The script isnt working, Dose it matter if its a SurfaceGui?
Yes, it matters a lot... It has to be a regular GUI
Oh
Is there a way to make it surfaceGui able?
I don't think so.
oh
OMG I GOT IT TO WORK!
function Clicked() game.Workspace.SurfacePart.Songs.Song1:Play() end script.Parent.MouseButton1Down:connect(Clicked)
Correct