Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I need help on a music Gui?

I have a SurfaceGui and I need a script so when I click on a button it plays an song.

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.

13 comments

0

Thanks

0

Remember to put good rep on me :3

0

I need 1 reputation to put vote up or down

0

Oh qq

0

The script isnt working, Dose it matter if its a SurfaceGui?

0

Yes, it matters a lot... It has to be a regular GUI

0

Oh

0

Is there a way to make it surfaceGui able?

0

I don't think so.

0

oh

0

OMG I GOT IT TO WORK!

0

function Clicked() game.Workspace.SurfacePart.Songs.Song1:Play() end script.Parent.MouseButton1Down:connect(Clicked)

0

Correct

This discussion is preserved as it was. New answers, comments, and votes are closed.