Roblox Studio Scripting Tutorial: DataStore2 (Saving with Tables) [READ DESC] [DEPRECATED TUTORIAL]

preview_player
Показать описание
Hello! In this video, you will be learning how you can use DataStore2 (A Module Created To Save Data) to save your player's data!

(There are some problems that i've made inside the video, please refer to the post if you find a problem)

Music Credit:
Creative Commons — Attribution 3.0 Unported — CC BY 3.0

Creative Commons — Attribution 3.0 Unported— CC BY 3.0

Command to get datastore2 module (IF YOU HAVE THE FREE MODEL): game.InsertService:LoadAsset(1936396537).MainModule.Parent = workspace

The DataStore2 Model:

Рекомендации по теме
Комментарии
Автор

one of the best tutorials i've watched

nathanieluk
Автор

This video helped me so much. Thank you!

TheGoldenMines
Автор

Hey?! Nice video, helped A LOT, but... i don't get why did you set the parents of the values at the very end? Does that really make a difference? Because in my few years i've never done that... is it because of the module or is it because you got used to it so you do that just to be sure? Am i missing something?!

elmars
Автор

is there a way to get data from a datastore u made using the normal method? plus would i be able to change the value of the data from other scripts for instance when u do dmg using combat it gives exp and then u level up, could i change the value from a separate script?

WindyPivot
Автор

Hey I have a request its a bit confusing and not a lot of awnsers to it online I been searching for 3 days now looking for on how to divide a table and the divided part into another table can you please make a tutorial on how to do this? if you didn't understand what I said let me explain it in a other way lets say a game about to start and then a script gets all the players into a table and divide the table of players into teams hope you understand and able to do this this will help a lot of people

justjacob
Автор

Is there a way to update this datastore2 to a non-deprecated version?
A lot of players are unable to load their stats now.

PianoMeetsMetal
Автор

I got a question, will this work with a string value?

herothingyt
Автор

question, what happens if I want to update a certain players currency from a separate script (for say a module script) ?

Ss-ftvr
Автор

How to save Bool values with regular data store? Can make video about that please

goobye
Автор

so we have to add the auto save for it to save.

youngjelley
Автор

Good morning, I get a bad request output every time I try to use the given command from the description; what is the issue?

lrdposeidon.
Автор

Hey man, will you please update this tutorial? I don't think It works anymore.

JohnSmith-glzk
Автор

i used your tutorial for my game but when i shut it down or people lose connection it makes the players lose data how would i fix this?

_JustMikami
Автор

I've been trying to see how to implement this into my game, but how do you update/add to the stat in a seperate script, otherwise that script would end up being like 500+ lines long for me

nathantaylor
Автор

Great tutorial, however, all the examples including this one run all the code in 1 script. I have tried to change the datastore from another script by getting the data in the datastore successfully, but I cannot for the life of me get the value to change. local playerData = Datastore2("MainKey", player):Get() . This gets the 2 tables, which i can print out as key value pairs, but then I don't understand how to change them.

brendonross
Автор

21:18:25.976 - DataStore2() API call expected {string dataStoreName, Instance player}, got {string, nil}

pattech
Автор

This Is What Foture (Future)Looks For Him... Making Any Studios. This Is Requested From My Friend... Play (Roblox)Wanted

OfficialKaickGaming
Автор

bruh i've even tried with your dev forum post still doesnt work :(

rylek
Автор

Why is this at my recommended and why do u have so little subs and views!?

PerspicaciousVG
Автор

Why add an auto save? Datastore2 saves any value changed directly to the actual Datastore.

yourmom