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 » Scripting Helpers
Home Search
 

Re: ChildAdded

Previous Thread :: Next Thread 
ryry99 is not online. ryry99
Joined: 13 Apr 2008
Total Posts: 403
04 Sep 2012 12:13 AM
I'm working with local sounds, which has gone successfully, and at the moment I'm making it mute-able. The only thing I'm having trouble with, is when a sound is put in the screengui to have it play, and you have the sound muted, it doesn't mute the sound.
What is most confusing is the output. "Sound" is not the name of the sound I have in "screengui".

screengui.ChildAdded:connect(function(zq)
print(zq:GetFullName())
if muted then
print("muted")
zq.Volume = 0
end
end)

Output:
Players.Player539.PlayerGui.screengui.Sound
muted
Report Abuse
ryry99 is not online. ryry99
Joined: 13 Apr 2008
Total Posts: 403
04 Sep 2012 10:03 AM
Bump. :/
Report Abuse
arundel is not online. arundel
Joined: 21 Apr 2008
Total Posts: 5762
04 Sep 2012 10:52 AM
"if muted then
volume=0"

Isn't that just like saying if the volume is zero, make volume zero..
Report Abuse
ryry99 is not online. ryry99
Joined: 13 Apr 2008
Total Posts: 403
05 Sep 2012 10:20 AM
Let me explain, this is a button on the screen, when you click it, it mutes the sound. "muted" is a bool telling if it's muted or not. Let's say I mute it, all the sounds get muted. But then a new sound gets inserted into screengui. That's where this function comes in. It checks to see if it's muted, then if it is, it mutes the new sound. Although, for some reason, it doesn't work.
Report Abuse
ryry99 is not online. ryry99
Joined: 13 Apr 2008
Total Posts: 403
05 Sep 2012 07:39 PM
It ended up working in "Play" mode. It doesn't work in "Solo" mode. Roblox these days...
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
05 Sep 2012 08:09 PM
ChildAdded / PlayerAdded don't work in Solo/Build Modes
Report Abuse
crusada91 is not online. crusada91
Joined: 04 Sep 2010
Total Posts: 684
05 Sep 2012 08:42 PM
ChildAdded/PlayerAdded does work in Solo, idk about build but

i test my tycoons through test solo lol and my playerentered script worksfine to give me leaderstats
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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