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 » Game Design
Home Search
 

Re: [GD] Basic descendant script.

Previous Thread :: Next Thread 
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
14 Dec 2014 04:44 PM
I have an unfinished basic script that I do not know how to finish.

for i, v in ipairs(game.Workspace:GetChildren()) do
print()

end

How would I put a reference to the table that is being indexed by the FOR loop when I don't have it defined? For example, I can do x = game.Workspace:GetChildren() and then that table is defined and I can access it by going to x[i]. But how would I access the table that is being indexed by the FOR loop when it's not defined?
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
14 Dec 2014 04:46 PM
I can't do this either:



for i, v in ipairs(x = game.Workspace:GetChildren()) do
print(x[i])

end


Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
14 Dec 2014 04:49 PM
How would I print each child of workspace?
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
14 Dec 2014 04:51 PM
I don't understand how you would access the table of workspace...

Someone help please.
:(
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
14 Dec 2014 04:54 PM
How would I do this??
:(
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
14 Dec 2014 04:56 PM
Help.
:(
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
14 Dec 2014 04:56 PM
HEY I FIGURED IT OUT
:)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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