Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I still don't understand data stores, can anyone help? [Unanswered]

Asked by 10 years ago

I read the Wiki Article on Data Persistance, and Data Store. I don't understand them. I need help.

0
The wiki article isnèt helping me. BosswalrusTheCoder 88 — 10y
0
I agree, the wiki can be very confusing at times. Unfortunately I do not know much about data stores. Perci1 4988 — 10y

3 answers

Log in to vote
0
Answered by 10 years ago

Data stores are basically where you can save small bits of information on a player such as a point value. They are commonly used for saving and loading leaderstats. I reccommend making a script that saves apon player exit. I hope I helped.

I found this from the wiki to help you. The first line says "If the player is leaving then" The second line says "If the person has a leaderstats then" The third line says "Save the number and where to find the number"

game.Players.PlayerRemoving:connect(function(player)
    if player:FindFirstChild("leaderstats") then
        player:SaveNumber(scoreKey, player.leaderstats.Score.Value)
    end
end)
0
I know but I don't know how to make the script. I keep looking at the wiki scripts. I don't understand the, All this UpdateAsync() stuff BosswalrusTheCoder 88 — 10y
0
^I hope my updated version helps! Thumbs up and Check mark my answer! Champion121212 22 — 10y
Ad
Log in to vote
-2
Answered by 10 years ago

Take a look at: Player Data Stores

Log in to vote
-2
Answered by 10 years ago

You don't know DataStores? If you want to learn about DataStores, click here.

0
I already read it. I don't get it. BosswalrusTheCoder 88 — 10y

Answer this question