How To SAVE DATA With DataStore!

preview_player
Показать описание
Guide on how to save and load player data using DataStore! Managing data is used in almost every game, so it's important to know how to do!

Give it a try and see what you can make with it!
Рекомендации по теме
Комментарии
Автор

NOTE: The script won't save data changed on the client, so make sure you're setting it on the server!

To check if the values are being set properly, you can print the PlayerData when it's being saved, if the values are all 0 or not the same as the values they should be, they're not being set on the server.

Good luck! :)

RealAlphaMango
Автор

amazing, I searched 3 days for an easy to understand tutorial and this youtube short magically appeared, thank you dude

Alberto
Автор

Bro thank you! Ive been wanting to learn datastore since I decided to learn scripting which was a long time ago like 1 - 2 years ago but all the tutorials are outdated yours worked! I'm subbing!

GoblinsDev
Автор

You made data stores easy to learn, and after 6 years I finallt understand them. One problem: someone just told me about profile service. 😅

jettj
Автор

Bro, thx u so much, i was trying to find a tutorial that works like 1 month, but your is the only that works, thx

TheDestroyerPhantom
Автор

hey bro does the number value have to be a number value or can mine be a int Value

Sunvr
Автор

You can also save your data when it is changed. Suppose you died, so to increase death value by 1 you can use
()
--- Save Data using SetAsync ()
end)

ZyanFernando
Автор

Old short but how could I save any other folder I make in the future to the datastore? For example I make an upgrades folder and every IntValue is saved inside the datastore without the value resetting to 0?

karentookkids
Автор

Bro not gonna lie ur underrated ur shorts R od bro but nobodys watch them keep going bro am pretty sure one day u'll go viral

blackbasha
Автор

Hey, shouldnt you set the parent of an instance AFTER assigning all its other properties when using instance.new?? It optimizes the game by quite a lot, from what ive heard.

Dimayuplay
Автор

How do you get the ordered data store to show up in your script files. When I type local it shows up in a dark blue format

ANGELOFCHAOSTG
Автор

Hey ive been trying to use a datastore that saves across my main game and lobby and other connected places but when ive tried it hasnt worked and i cant find any videos on it that work, do you have one that could be helpful for doing this?

Mysterykingdom
Автор

I have a simulator game and it is not working, I did the script, changed Kills with jumppower and deaths with coins and all that but I don't know if i did something wrong or how to fix it could someone help me?

_Mr_Hexo_
Автор

how can i save u know a plot? like oma try do a game where player has to raise some animals and i want a save system that would save entity in a plot or structure like a tycoob

SonnyXDrl
Автор

Hello. I have a problem. My ServerScriptService is not showing up in my Explorer. Please make an explanation about it. Thanks!

DahnPlayz
Автор

finnaly a new save data script mine was so bad that my own players were gonna sue me

crack_studios
Автор

When i leave the game and try to save 2 values. it gets added to a queue. i join back in and the data for the 2nd value isn't there any idea how to fix?

hayhay_
Автор

im Late but does Datasave act for purchases and stages also? Like Unlocking a Stages Transparency and Like buying A Item Like a Gun with robux. or is that something else

Ruleyy
Автор

your script is the only one that works for me tysm

saturnpie
Автор

No idea what this is about nor the library used, but understood everything. Good tutorial

gamefacierglitches