Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-3

if gui clicked; play sound?[ANSWERED]

Asked by 10 years ago

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()
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. M39a9am3R 3210 — 10y
0
ok hold on FancyClone 0 — 10y

1 answer

Log in to vote
1
Answered by 10 years ago
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

Ad

Answer this question