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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|