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

How to make a sound play locally?

Asked by 4 years ago

So I have my script, and I want to figure out how to make the sound play locally.

I have been trying to work out how to make a sound play locally once I click a brick, but nothing will work due to my very basic understanding of lua.

    Frame.Visible = true 
wait (5) 
Frame.Visible = false
end)

This is the part of the script I want to edit.

I want to make it so that, once my GUI pops up, a sound plays as well. So its something like

    Frame.Visible = true 
     --(right here is where the local sound playing script would be)
wait (5) 
Frame.Visible = false
end)

Also, I wont be trying to make it so that the GUI and the local sound script are separate scripts, because I think one of them will interfere with the GUI script.

0
LocalScripts. sngnn 274 — 4y

1 answer

Log in to vote
0
Answered by
moo1210 587 Moderation Voter
4 years ago

To play a sound locally you should use a localscript to play it. In your case, I would put it inside the GUI and then play it with a localscript.

Ad

Answer this question