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: Quick Datastore help

Previous Thread :: Next Thread 
alij12 is not online. 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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
16 Mar 2017 03:13 PM
Then use a table?
Also, you can't save BrickColor values with data stores.


Report Abuse
alij12 is not online. 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 is online. 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
Fresh_Effect is not online. Fresh_Effect
Joined: 05 Feb 2012
Total Posts: 1342
16 Mar 2017 03:14 PM
or save BrickColor.Name
Report Abuse
Wrathsong is online. 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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
16 Mar 2017 03:14 PM
"So you'd have to save the brickcolor color code"

Or BrickColor.Name


Report Abuse
alij12 is not online. 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 is online. 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 is not online. 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 is not online. 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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
16 Mar 2017 03:33 PM
"Also, you can't save BrickColor values with data stores."


Report Abuse
alij12 is not online. 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
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