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: Multi-Lined tables?

Previous Thread :: Next Thread 
Drenkus is not online. Drenkus
Joined: 03 May 2009
Total Posts: 2380
03 Aug 2011 10:07 PM
Is there a way for tables to work like this?

table={"Lol",
"Hithar",
"Yes."}
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
03 Aug 2011 10:08 PM
yes, just like that.
Report Abuse
AeroMcFly is not online. AeroMcFly
Joined: 16 Jul 2008
Total Posts: 546
03 Aug 2011 10:08 PM
That will work. I prefer using semicolons though, but it really doesn't matter.

local t = {
"abc";
"123";
}
Report Abuse
Drenkus is not online. Drenkus
Joined: 03 May 2009
Total Posts: 2380
03 Aug 2011 10:08 PM
You still access it as, table[1] or table[2]?
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
03 Aug 2011 10:09 PM
yep.

You can do


tablas={
{1,2,3},
{4,5,6}};

to make it act more like a matrix and then access like tablas[2][3]
Report Abuse
AeroMcFly is not online. AeroMcFly
Joined: 16 Jul 2008
Total Posts: 546
03 Aug 2011 10:10 PM
Yes
Report Abuse
Drenkus is not online. Drenkus
Joined: 03 May 2009
Total Posts: 2380
03 Aug 2011 10:10 PM
I like that better, thank you.
Report Abuse
Drenkus is not online. Drenkus
Joined: 03 May 2009
Total Posts: 2380
03 Aug 2011 10:18 PM
Made my tycoon buttons 100x more accessible.
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