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
 

Re: Function called everytime an Instance is added, possible?!

Previous Thread :: Next Thread 
PlaceRebuilder is not online. PlaceRebuilder
Joined: 29 Apr 2008
Total Posts: 1056
26 Apr 2015 03:16 PM
Hi,

I'm looking for a function that's called everytime someone add an object to the game.
I could tag all bricks in a game with brick.ChildAdded:connect
but Im looking for a more convinient method.


Is it possible to run the function childAdded(child) everytime an item is added, nomatter where it's added?
Report Abuse
PanzerfanloI is not online. PanzerfanloI
Joined: 10 Feb 2015
Total Posts: 84
26 Apr 2015 03:20 PM
workspace.DescendantAdded

...?
Report Abuse
ImageLabel is not online. ImageLabel
Joined: 08 Dec 2012
Total Posts: 428
26 Apr 2015 03:21 PM
Any and all instances? Anywhere as long as it's a descendant of `game`?

game.DescendantAdded:connect(print) --print of course if just an example function.
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
26 Apr 2015 03:23 PM
Use the Wiki next time.
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