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
 

Adding Values to a Table

Previous Thread :: Next Thread 
Shiro75 is not online. Shiro75
Joined: 18 Jan 2010
Total Posts: 587
28 Jun 2016 10:42 PM
I'd paste my code here, but I just exploded after my alarm for three hours went off and I had once again bumped into a roadblock.

What I needed help with was something along the lines of..

poseTable = { }
num = 0
while place:FindFirstChild("thing".. (num + 1)) do
-- a couple more conditions
num = num + 1
table.insert(poseTable, #poseTable + 1, place:FindFirstChild("thing".. (num + 1).Value)
-- a couple more ends

if place:FindFirstChild("thing".. (num + 1)) == nil then
print(#poseTable)
end
end

The problem was that the output for #poseTable would be 0. My scripting foundation is made up of everything I've had to know. Not what I should know before I try do something.. ;~;

Anyways, if you've made it up to this point, thank you! Based on what I've encountered, I think I'm using the table.insert thing incorrectly, or perhaps the value of num doesn't get updated because it's outside of the loop? Someone please correct me, I'd appreciate it very much!
Report Abuse
Shiro75 is not online. Shiro75
Joined: 18 Jan 2010
Total Posts: 587
29 Jun 2016 12:28 AM
Bump!
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