generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Playing sound effects issue

Previous Thread :: Next Thread 
brennisawesome is not online. brennisawesome
Joined: 26 Oct 2012
Total Posts: 1658
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
brennisawesome is not online. brennisawesome
Joined: 26 Oct 2012
Total Posts: 1658
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
brennisawesome is not online. brennisawesome
Joined: 26 Oct 2012
Total Posts: 1658
01 Nov 2017 11:09 PM
Seriously, I need help here.
Report Abuse
soutenu is online. soutenu
Joined: 09 Dec 2011
Total Posts: 1021
01 Nov 2017 11:18 PM
sound effects don't play, only sounds do
Report Abuse
brennisawesome is not online. brennisawesome
Joined: 26 Oct 2012
Total Posts: 1658
02 Nov 2017 12:26 AM
It is a Sound (as in, ######### = "Sound")
Report Abuse
soutenu is online. 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
brennisawesome is not online. brennisawesome
Joined: 26 Oct 2012
Total Posts: 1658
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
szkiller_dev is not online. szkiller_dev
Joined: 07 Oct 2016
Total Posts: 3572
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 is online. 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
brennisawesome is not online. brennisawesome
Joined: 26 Oct 2012
Total Posts: 1658
02 Nov 2017 08:06 PM
decla, I think you're really stupid.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image