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: is it possible to unpack() a datastore?

Previous Thread :: Next Thread 
SkeletalOrigin is not online. SkeletalOrigin
Joined: 16 Aug 2012
Total Posts: 8359
11 Feb 2015 01:14 PM
like

local ds = game:GetService("DataStoreService"):GetOrderedDataStore("Points")
local data = unpack(ds)
> key : value
> key : value
> key : value
> key : value

#FollowForFollow #F4F #RespectMyBowtie
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
11 Feb 2015 01:18 PM
If it's a table, yes, otherwise no.

If you save a table of data to the DataStore, instead of saving the data piece by piece, then it should work.
Report Abuse
SkeletalOrigin is not online. SkeletalOrigin
Joined: 16 Aug 2012
Total Posts: 8359
11 Feb 2015 01:24 PM
great!

im creating a database and will be saving tables of values and am hoping to unpack the datastore and be able to get the keys(name of players) and the values(stats of players)

so for example:

local blergh = {
[p.Name] = {
["Points"] = pointsDS:GetAsync(p.userId);
["Level"] = levelDS:GetAsync(p.userId)
}
}

#FollowForFollow #F4F #RespectMyBowtie
Report Abuse
SkeletalOrigin is not online. SkeletalOrigin
Joined: 16 Aug 2012
Total Posts: 8359
11 Feb 2015 01:26 PM
idk if thats right lold i did have it in my head earlier but now its gone xD pls tell me thats right xd

#FollowForFollow #F4F #RespectMyBowtie
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