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 Issues

Previous Thread :: Next Thread 
Nikilis is not online. Nikilis
Joined: 25 Dec 2008
Total Posts: 949
31 Aug 2013 12:18 PM
I have an object in a Player called "TruckData".

When I do

TruckData.ChildAdded:connect(function() print("test") end)

and then

Instance.new("BoolValue",TruckData)

It doesn't work. It only works when I clone it and add it from studio in Test > Play Solo
Report Abuse
Xtreme101 is not online. Xtreme101
Joined: 03 Jan 2009
Total Posts: 4385
31 Aug 2013 12:20 PM
You have to locate TruckData in the line

Instance.new("BoolValue",TruckData)

You can't expect the computer to automatically find it.
Report Abuse
Nikilis is not online. Nikilis
Joined: 25 Dec 2008
Total Posts: 949
31 Aug 2013 12:23 PM
TruckData is a variable. The Instance DOES get added, but ChildAdded doesn't get called.
Report Abuse
Xtreme101 is not online. Xtreme101
Joined: 03 Jan 2009
Total Posts: 4385
31 Aug 2013 12:24 PM
Well then no child has been added. Derp
Report Abuse
Nikilis is not online. Nikilis
Joined: 25 Dec 2008
Total Posts: 949
31 Aug 2013 12:26 PM
No, it was added, but I have updates on the issue. It prints when a Child is added, but when I check it's name, it doesn't work unless I clone it into TruckData.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
31 Aug 2013 12:28 PM
Where are both pieces of code located?
Report Abuse
Nikilis is not online. Nikilis
Joined: 25 Dec 2008
Total Posts: 949
31 Aug 2013 12:30 PM
Nevermind, issue solved. -.-"
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
31 Aug 2013 12:33 PM
Read my workaround on the Scripters topic. (Next time, don't post two topics, please..)
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