|
| 01 Nov 2017 10:38 PM |
So I have a GUI, and in it, there's a click sound effect that is supposed to play when GUIs are clicked.
The thing is, like 75% of the time it doesn't work, and the other 25% it does work; although no errors show up, meaning it is finding the audio.
It it only works one way per time loaded. For instance, if I load the game up, and the sound doesn't play, it will continue to not play. But if it does play when loaded up, it plays every time. How do I make it work every time? Am I doing something wrong? |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2017 10:47 PM |
Literally all I'm doing is
script.Parent.Parent.Parent.ClickSound:Play(), and it doesn't play. |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2017 11:09 PM |
| Seriously, I need help here. |
|
|
| Report Abuse |
|
|
soutenu
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 1021 |
|
|
| 01 Nov 2017 11:18 PM |
| sound effects don't play, only sounds do |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2017 12:26 AM |
| It is a Sound (as in, ######### = "Sound") |
|
|
| Report Abuse |
|
|
soutenu
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 1021 |
|
|
| 02 Nov 2017 12:28 AM |
| try using WaitForChild to make sure the instance has loaded before playing it |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2017 12:30 AM |
I'll try that, although I don't think that's the issue, because it never errors out, saying that "ClickSound" is nil.
Also, several scripts use that sound, and all of them appear to not properly play the sound.
|
|
|
| Report Abuse |
|
|
|
| 02 Nov 2017 12:32 AM |
I think there's a property called "isLoaded" make an if statement.
Lua is my moon, Java is my coffee, Pascal is my dad, C++ is my grade, Ruby is my jewelry, php is my site 😎😎 |
|
|
| Report Abuse |
|
|
decla123
|
  |
| Joined: 08 Jun 2011 |
| Total Posts: 112 |
|
|
| 02 Nov 2017 01:27 AM |
I've had this problem SOO many times, and i've found a fix for it!!!
First, play solo, then open menu to volume and make sure it is turned up. then stop the play solo and try play a sound. |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2017 08:06 PM |
| decla, I think you're really stupid. |
|
|
| Report Abuse |
|
|