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
 

Is there a guide to learn DataStores that's better than wiki

Previous Thread :: Next Thread 
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
28 Nov 2015 04:46 PM
I just can't learn them.

u sicko! http://www.roblox.com/1000000000000000000-item?id=324397328
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
28 Nov 2015 04:48 PM
I don't know if this will help much;

http://forum.roblox.com/Forum/ShowPost.aspx?PostID=178482217
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
28 Nov 2015 04:51 PM
No thanks, I don't want a script, I want a tutorial.
I'm really tempted to use Data Persistence right now...

u sicko! http://www.roblox.com/1000000000000000000-item?id=324397328
Report Abuse
GooeyChopsticks is not online. GooeyChopsticks
Joined: 25 Nov 2015
Total Posts: 632
28 Nov 2015 05:01 PM
Basically, you define your data

ds = DataStoreService:GetDataStore("NameHere") -- Change the name to reset all data for players

to save, do this

ds:SetAsync(Key, Value)

Cannot be a userdata
Can be boolean, number, string, table, etc
You find the value by looking up the key

ds:GetAsync(key)

then, you check if the data is there
if it isnt, you default to [your default]

I am pretty sure you can figure it out now

A typical key looks like: Kills_UserId
So you know the stat is kills, and the UserId is the players UserId
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
28 Nov 2015 05:03 PM
You looked at this article, right? http://wiki.roblox.com/index.php?title=Data_store

It's really straightforward and tells you how to use DS. I will say they can be confusing at first, especially if you have no prior experience in storing data. The best thing to do is simply learn through experimentation.
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