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 » Scripters
Home Search
 

Re: would this work

Previous Thread :: Next Thread 
HalfPinky456 is not online. HalfPinky456
Joined: 10 Apr 2011
Total Posts: 6236
18 Jul 2017 12:12 AM
drinks[1] = slush[1]
sizes[1] = slush[2]

/sarcasm | i am a dead meme
Report Abuse
PLBH is not online. PLBH
Joined: 08 May 2014
Total Posts: 151
18 Jul 2017 12:15 AM
No use tables Drinks = {} and so on
Report Abuse
HalfPinky456 is not online. HalfPinky456
Joined: 10 Apr 2011
Total Posts: 6236
18 Jul 2017 11:22 AM
but i also want to save it to another table so that i can clear the tables later

/sarcasm | i am a dead meme
Report Abuse
iiNemo is online. iiNemo
Joined: 22 Jul 2013
Total Posts: 2380
18 Jul 2017 11:25 AM
To clear this table below,
local Table = {'Nemo', 'Dory'}
To clear it just do this,
Table = {}
Report Abuse
qrushed is not online. qrushed
Joined: 10 Apr 2012
Total Posts: 587
18 Jul 2017 11:25 AM
then have two tables?
Report Abuse
DevJoas is not online. DevJoas
Joined: 17 Dec 2014
Total Posts: 627
18 Jul 2017 11:27 AM
This would work, but be care full when putting a table inside of a table when using this method because the tables will be saved as pointers:



> local tab = {"1", "2"}
local tab2 = {}

tab2[1] = tab -- THIS WILL BE A POINTER, NOT A COPY OF THE TABLE

print(tab2[1][1])

tab2[1][1] = "3" -- THIS EDITS ORIGINAL TABLE

print(tab[1])
print(tab2[1][1]) -- BOTH values are now 3

1
3
3

Report Abuse
HalfPinky456 is not online. HalfPinky456
Joined: 10 Apr 2011
Total Posts: 6236
18 Jul 2017 11:37 AM
thanks!

/sarcasm | i am a dead meme
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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