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: Why does this script only show the last entered thing?

Previous Thread :: Next Thread 
Sonic50 is not online. Sonic50
Joined: 12 Aug 2007
Total Posts: 32
24 Jan 2012 04:59 PM
Can someone please fix it to show everything in game.Lighting.Stuff3?



group = game.Lighting.Stuff3:GetChildren()
for r = 1, #group do
object = group[r]
script.Parent.Parent.Stuf.Text = (object.Name)
r = r +1
end



~Trollaminus
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
24 Jan 2012 05:00 PM
group = game.Lighting.Stuff3:GetChildren()
for r = 1, #group do
object = group[r]
script.Parent.Parent.Stuf.Text = script.Parent.Parent.Stuf.Text..", "..object.Name
end

-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
Sonic50 is not online. Sonic50
Joined: 12 Aug 2007
Total Posts: 32
24 Jan 2012 05:03 PM
Thanks.
Also how could i make it so if i add something to Stuff3 while in game it will show that?

~Trollaminus
Report Abuse
Sonic50 is not online. Sonic50
Joined: 12 Aug 2007
Total Posts: 32
24 Jan 2012 05:10 PM
bump

~Trollaminus
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
24 Jan 2012 05:12 PM
group = game.Lighting.Stuff3:GetChildren()
for r = 1, #group do
object = group[r]
script.Parent.Parent.Stuf.Text = script.Parent.Parent.Stuf.Text..", "..object.Name
end
group.ChildAdded:connect(function(child)
script.Parent.Parent.Stuf.Text = script.Parent.Parent.Stuf.Text..", "..child.Name
end)

-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
Sonic50 is not online. Sonic50
Joined: 12 Aug 2007
Total Posts: 32
24 Jan 2012 05:14 PM
Does not work.

~Trollaminus
Report Abuse
Sonic50 is not online. Sonic50
Joined: 12 Aug 2007
Total Posts: 32
24 Jan 2012 05:46 PM
bump?

~Trollaminus
Report Abuse
Sonic50 is not online. Sonic50
Joined: 12 Aug 2007
Total Posts: 32
24 Jan 2012 05:57 PM
bump..

~Trollaminus
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
24 Jan 2012 05:59 PM
DOH, I'm stupid D:

group = game.Lighting.Stuff3:GetChildren()
for r = 1, #group do
object = group[r]
script.Parent.Parent.Stuf.Text = script.Parent.Parent.Stuf.Text..", "..object.Name
end
game.Lighting.Stuff3.ChildAdded:connect(function(child)
script.Parent.Parent.Stuf.Text = script.Parent.Parent.Stuf.Text..", "..child.Name
end)

-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
Sonic50 is not online. Sonic50
Joined: 12 Aug 2007
Total Posts: 32
24 Jan 2012 06:08 PM
Ok thanks that works, but when i add another item into Stuff3 it does not change the name it just take the first ones name.
~Trollaminus
Report Abuse
Sonic50 is not online. Sonic50
Joined: 12 Aug 2007
Total Posts: 32
24 Jan 2012 06:32 PM
bbump

~Trollaminus
Report Abuse
Sonic50 is not online. Sonic50
Joined: 12 Aug 2007
Total Posts: 32
24 Jan 2012 06:55 PM
anyone please?

~Trollaminus
Report Abuse
Sonic50 is not online. Sonic50
Joined: 12 Aug 2007
Total Posts: 32
24 Jan 2012 07:41 PM
bump

~Trollaminus
Report Abuse
Sonic50 is not online. Sonic50
Joined: 12 Aug 2007
Total Posts: 32
24 Jan 2012 07:50 PM
bbuummpp

~Trollaminus
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