alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 16 Mar 2017 03:11 PM |
Im trying to store about 15 different values, (5 Brick colors, 5 Reflectances, and 5 materials),
Is there a quick way to store it without making 15 different keys?
#code Do not give up; the beginning is always the hardest part. |
|
|
| Report Abuse |
|
|
|
| 16 Mar 2017 03:13 PM |
Then use a table? Also, you can't save BrickColor values with data stores.
|
|
|
| Report Abuse |
|
|
alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 16 Mar 2017 03:14 PM |
I have a way of storing brickcolors (not directly), and you can save tables with datastores? I thought you couldnt .-.
#code Do not give up; the beginning is always the hardest part. |
|
|
| Report Abuse |
|
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
|
| 16 Mar 2017 03:14 PM |
In a table. But you can only save ints, strings, bools, and tables. So you'd have to save the brickcolor color code i suppose and the materials as strings
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
| |
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
|
| 16 Mar 2017 03:14 PM |
Yes, you most definitely can save tables. Otherwise we'd all be doomed. And you could also save the brickcolor as a string my bad
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
|
| 16 Mar 2017 03:14 PM |
"So you'd have to save the brickcolor color code"
Or BrickColor.Name
|
|
|
| Report Abuse |
|
|
alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 16 Mar 2017 03:15 PM |
Alright, that helps me, I already have everything stored in a table (as strings), so I can just save that directly :D
Thanks.
#code Do not give up; the beginning is always the hardest part. |
|
|
| Report Abuse |
|
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
|
| 16 Mar 2017 03:18 PM |
fresh ninja'd me i ninja'd unsub lul
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 16 Mar 2017 03:27 PM |
So I got this error:
Cannot store Array in Datastore
.-.
#code Do not give up; the beginning is always the hardest part. |
|
|
| Report Abuse |
|
|
alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 16 Mar 2017 03:33 PM |
bp
#code Do not give up; the beginning is always the hardest part. |
|
|
| Report Abuse |
|
|
|
| 16 Mar 2017 03:33 PM |
"Also, you can't save BrickColor values with data stores."
|
|
|
| Report Abuse |
|
|
alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 16 Mar 2017 03:34 PM |
I dont think I am.
Let me make sure though.
#code Do not give up; the beginning is always the hardest part. |
|
|
| Report Abuse |
|
|