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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: quick question about datastores

Previous Thread :: Next Thread 
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
23 Dec 2016 04:51 PM
what values can/cannot datastores save?






Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
23 Dec 2016 04:52 PM
BrickColor is one, idk the rest


Report Abuse
KidNoobly is not online. KidNoobly
Joined: 15 Apr 2014
Total Posts: 107
23 Dec 2016 04:53 PM
All values can be saved like Number, Bool, String check the wiki and i think you can even save parts and models files etc
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
23 Dec 2016 04:54 PM
they can save bools, numbers, strings, and tables with those things in them
Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
23 Dec 2016 04:54 PM
what no


Report Abuse
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
23 Dec 2016 04:57 PM
ik about intvalues, but idk about bool


y'all sure


Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
23 Dec 2016 05:05 PM
You can save Bool


Report Abuse
coolcold77 is not online. coolcold77
Joined: 27 Mar 2013
Total Posts: 1239
23 Dec 2016 06:36 PM
I don't think you can save models/GUI's you have to make a value for it?
Report Abuse
clc02 is not online. clc02
Joined: 30 Dec 2007
Total Posts: 7393
23 Dec 2016 06:46 PM
You cannot save anything you use Instance.new() to create.
You can save Vector3/2s, BrickColors, Color3s, etc because they're literally just tables.
Color3 = {r = 255, g = 255, b = 255}
The best way to save data is using tables too, usually goes without saying, but you can save a ridiculous amount of information by just putting numbers into a table.
Also if you use {index = "Something"} you need to index every value, you can't mix and match, either {1, "Something", 4} or {V1 = 1, V5 = "Something, VB = 4}
Report Abuse
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
23 Dec 2016 06:47 PM
@clc


what you cant??


aw..


now i have to start my datastore leaderboard all over :/


Report Abuse
clc02 is not online. clc02
Joined: 30 Dec 2007
Total Posts: 7393
23 Dec 2016 06:54 PM
function storeInstance(className, listOfProperties)
local save = {}
save.className = className
for i, v in pairs(listOfProperties) do
save[i] = v
end
return save
end

function loadInstance(save, parent)
local inst = Instance.new(save.className)
for i, v in pairs(save)
if i ~= "className" then
inst[i] = v
end
end
save.Parent = parent
end

save = storeInstance("Part", {Position = Vector3.new(0, 50, 0), Anchored = true, Size = Vector3.new(10,1,10)}
loadInstance(save, game.Workspace)
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