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: saving/loading tables (is this right?)

Previous Thread :: Next Thread 
seliso is not online. seliso
Joined: 30 Jan 2011
Total Posts: 6443
22 Mar 2015 12:02 AM
function getShopItems(player,shopItems)
local shopitems = {}

local mydata = datastore:GetAsync(player.userId) or {}
shopitems[player.userId] = mydata

for i,v in pairs(shopitems) do
local stringvalue = Instance.new("ObjectValue")
stringvalue.Name = shopitems[v]
end
end

function saveShopItems(player,shopItems)
local shopitems = {}

local mydata = datastore:GetAsync(player.userId) or {}
shopitems[player.userId] = mydata

for i,v in pairs(shopitems:GetChildren()) do
mydata.shopitems = string.len(v.Value)
end
end

-tips fedora-
Report Abuse
seliso is not online. seliso
Joined: 30 Jan 2011
Total Posts: 6443
22 Mar 2015 12:06 AM
bump

-tips fedora-
Report Abuse
seliso is not online. seliso
Joined: 30 Jan 2011
Total Posts: 6443
22 Mar 2015 12:16 AM
bump[2]

-tips fedora-
Report Abuse
seliso is not online. seliso
Joined: 30 Jan 2011
Total Posts: 6443
22 Mar 2015 12:19 AM
bump[3]

-tips fedora-
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
22 Mar 2015 12:22 AM
yes.
Report Abuse
Arithmeticity is not online. Arithmeticity
Joined: 15 Feb 2015
Total Posts: 448
22 Mar 2015 02:18 AM
Bookmarked.
Report Abuse
seliso is not online. seliso
Joined: 30 Jan 2011
Total Posts: 6443
22 Mar 2015 10:33 AM
bump

-tips fedora-
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