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
 

DataStore, Tables

Previous Thread :: Next Thread 
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
25 Mar 2014 03:22 PM
I've been creating a game and I have universes. I want to save created places in a table on the data store but i'm struggling how to save them and then how to get the whole list later on
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
25 Mar 2014 03:23 PM
My main issue is I don't know how to use Arbituary Tables
Report Abuse
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
25 Mar 2014 03:26 PM
Table = {bla,bla,bla}
Utils = assert(LoadLibrary("RbxUtility"))
DS = game.DataStoreService:GetDataStore("YourDataStore")

DS:SaveString("Bla" Utils.EncodeJSON(Table))

-- And to decode it

NewVariable = Utils.DecodeJSON(DS:LoadString("Bla")) -- That will return a table



For more information on JSON: Visit http://wiki.roblox.com/index.php?title=JSON
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
25 Mar 2014 03:28 PM
Okay thank you for clearing it up for me ;)
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