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
 

Generic FOR -- HELP

Previous Thread :: Next Thread 
EXYZED is not online. EXYZED
Joined: 09 Nov 2013
Total Posts: 533
21 Jan 2017 05:03 PM
Using a Generic FOR to see if a PLAYER contains a sound. if true then run code.

How would I do this?
Report Abuse
TextSoaked is not online. TextSoaked
Joined: 04 Sep 2015
Total Posts: 1040
21 Jan 2017 05:04 PM
for i, v in pairs (player:GetChildren())
if v.Name == sound --string value


Report Abuse
EXYZED is not online. EXYZED
Joined: 09 Nov 2013
Total Posts: 533
21 Jan 2017 05:07 PM
Thanks for the response. I've encountered another Query. How would I utilise the ChildAdded with this? Say that if a Sound is added to any random player. FireEvent -> function
Report Abuse
EXYZED is not online. EXYZED
Joined: 09 Nov 2013
Total Posts: 533
21 Jan 2017 05:08 PM
In further further addition. The code runs through ALL players.
Report Abuse
TextSoaked is not online. TextSoaked
Joined: 04 Sep 2015
Total Posts: 1040
22 Jan 2017 06:56 AM
player.ChildAdded:connect(function(obj) --connect an anon func to the event
if obj.Name == soundName then
--todo


Report Abuse
KritikalGunzz is not online. KritikalGunzz
Joined: 10 Nov 2013
Total Posts: 1633
22 Jan 2017 07:02 AM
You've asked this like 20 times already
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