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: efficient table saving

Previous Thread :: Next Thread 
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
20 Jul 2016 08:49 AM
i know how datastores and tables work but whats a good method for saving/loading tables

is it good to have the traditional values-in-player type of things but read the values and save them inside of a table?

is it also possible to mix values inside of a table to save or no? example:

tab = {
"string";
123;
true;
}


Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
20 Jul 2016 09:01 AM
local data = {
["beatBoss1"] = true,
["inventory"] = {
{
["name"] = "Potion",
["amount"] = 5,
},
{
["name"] = "Iron Ore",
["amount"] = 1,
},
}
}
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
20 Jul 2016 09:43 PM
that doesnt really answer anything i asked


Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
21 Jul 2016 06:55 PM
You have two different questions in your post
Can you explain more clearly?
Report Abuse
PerilousDanger is not online. PerilousDanger
Joined: 21 Aug 2012
Total Posts: 3773
21 Jul 2016 07:18 PM
playerData = {exp, credits, {gun1id, gun2id}}

dataStore:SetAsync(plr.UserId,playerData)
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