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
 

Referencing and Using Tables

Previous Thread :: Next Thread 
TimeCruiser is not online. TimeCruiser
Joined: 24 Oct 2008
Total Posts: 134
10 Mar 2014 11:40 PM
I am working on a data saving system for a universe, and since Data Stores cannot save Instances, I was going to just use Persistent Data. For this, I was going to store information as IntValues, StringValues, and IntContrainedValues, until I found out that multiple place (even in a universe) cannot reference the same Persistent Data. So, I am wanting to convert the information to keys and values in tables, and store the tables to the Data Store, but have the following questions / issues about tables that I would appreciate answers to or input on.

1. Can tables be renamed after they have been defined?

2. Is there an easy way of copying a table to a different name, or is it necessary to iterate over all of the key/value pairs to create a copy of a table?

3. Is it possible to define where a table is stored in a server? (I.e. have a table named "Save" stored under the local player. The goal would be to have the tables being different for each player but the same for any scripts referencing the player. I am hoping to avoid needing to put the player name in the name of the table.)

4. It seems like Data Stores are just tables themselves, with it being possible to store tables in tables, but is there a limit to how many layers of nested tables there can be? (To keep inside the throttled request limit of Data Stores, I would be loading and saving tables to the Data Store instead of each key/pair directly to the Data Store.)

5. Saving IntValues and StringValues as key/value pairs should be straightforward enough, but if anyone has an easier and more efficient way for IntConstrainedValues than storing 3 IntValues, I would be open to the idea.
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