|
| 23 Dec 2016 04:51 PM |
what values can/cannot datastores save?
|
|
|
| Report Abuse |
|
|
eRanged
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
|
| 23 Dec 2016 04:52 PM |
BrickColor is one, idk the rest
|
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 23 Dec 2016 04:54 PM |
| they can save bools, numbers, strings, and tables with those things in them |
|
|
| Report Abuse |
|
|
eRanged
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
| |
|
|
| 23 Dec 2016 04:57 PM |
ik about intvalues, but idk about bool
y'all sure
|
|
|
| Report Abuse |
|
|
eRanged
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 23 Dec 2016 06:47 PM |
@clc
what you cant??
aw..
now i have to start my datastore leaderboard all over :/
|
|
|
| Report Abuse |
|
|
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 |
|
|