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 » Game Design
Home Search
 

Re: A quick question about DataStores

Previous Thread :: Next Thread 
NerdyTea is not online. NerdyTea
Joined: 30 Mar 2010
Total Posts: 561
21 Apr 2016 06:36 PM
Would it be possible/reasonable to create two DataStores for a single game?


-Fond of tea
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
21 Apr 2016 06:41 PM
It is possible, yes.

Reasonable? Depends on what you're doing.
Report Abuse
NerdyTea is not online. NerdyTea
Joined: 30 Mar 2010
Total Posts: 561
21 Apr 2016 06:49 PM
Okay, say that I want to have two DataStores set up with the both of them saving tables. One would have stats like coins, level, etc; and the other could act as an inventory saving different item IDs.

Would that be reasonable, or should I save two entries to the same DataStore for each player?


-Fond of tea
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
21 Apr 2016 07:21 PM
Well, personally, I'd just do something like this:

local ds=game:GetService("DataStoreService"):GetDataStore("PlayerInformation")
local valuesBeingSaved={
{
10; --coins?
20; --levels?
},
{
"1A"; --invslot1
"1B"; --invslot2
"1C"; --invslot3
}
}

and save that one thing, so only 1 save

but that's me.
Report Abuse
NerdyTea is not online. NerdyTea
Joined: 30 Mar 2010
Total Posts: 561
21 Apr 2016 07:21 PM
Ah, that makes sense! I appreciate all the help!


-Fond of tea
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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