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

if gui clicked; play sound?[ANSWERED]

I need this , so if I close a gui it will make a sound

script.Parent.Mouse1Click:connected:connected(function)(
if
	script.Parent.Mouse1Click:connected:connected
then
	game.Workspace.DING:Play()

2 comments

0

Can you please attempt your scripts? Otherwise a vote will be casted for the question being unconstructive. Scripting Helper is not a request site, we are here to debug, and explain code as you need.

0

ok hold on

1 answer

✓ Accepted answer
script.Parent.MouseButton1Click:connect(function()
game.Workspace.DING:Play()
end)

It seems you don't know how to script well

Look up youtube videos, here is a channel I reccomend:

PeasFactory

If you are better at learning if you read, you should check out the ROBLOX Wiki:

ROBLOX Wiki

Here is a wiki article to get you started

ROBLOX Wiki Scripting Cookbook

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