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

How to make a sound play locally?

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.

1 comment

0

LocalScripts.

1 answer

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.

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