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: Question about DataStore and tables...

Previous Thread :: Next Thread 
snowparks is not online. snowparks
Joined: 10 Apr 2017
Total Posts: 64
09 Jul 2017 11:55 PM
When trying to save multiple instances using tables of properties, is it necessary to use JSONEncoding?


Report Abuse
snowparks is not online. snowparks
Joined: 10 Apr 2017
Total Posts: 64
10 Jul 2017 12:15 AM
Help


Report Abuse
OAuth2 is not online. OAuth2
Joined: 27 Nov 2016
Total Posts: 751
10 Jul 2017 12:16 AM
It's possible, yeah.
Report Abuse
WillieTehWierdo200 is not online. WillieTehWierdo200
Joined: 13 Aug 2008
Total Posts: 1147
10 Jul 2017 12:17 AM
Nope, pretty sure JSON is normally just used for reading/sending web responses/requests.
Report Abuse
OAuth2 is not online. OAuth2
Joined: 27 Nov 2016
Total Posts: 751
10 Jul 2017 12:27 AM
@Willie You can still convert a table into JSON and back using Encode/Decode.
Encoding turns it into a string = savable in the datastore.
Report Abuse
GGGGG14 is not online. GGGGG14
Joined: 29 Jan 2012
Total Posts: 25344
10 Jul 2017 01:29 AM
It's not necessary at all.

DataStore:SetAsync("FruitsData", {Banana=1; Mango=2; Pear=3; Apple=false; Papaya="delicious"})
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
10 Jul 2017 01:35 AM
Doesn't it automatically convert it to json


Report Abuse
OAuth2 is not online. OAuth2
Joined: 27 Nov 2016
Total Posts: 751
11 Jul 2017 08:50 AM
@GG

I guess that's a way to do it. I saw "tables of properties" and automatically assumed Position, Size, CFrame, Surface, Material, etc. (Which I think you can save into a JSON to save to the DataStore)
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