Datastore: A Scripter's Worst Nightmare Explained
Datastore can be tricky to learn in Roblox Studio, but hopefully this video helps you to finally understand this topic.
As as always, keep leveling up, be safe, and I'll see you when I see you, peace.
Discord Community :discord.gg/7ZyCPE5tjX
Download Place: www.mediafire.com/file/42agszqyh0oxbnh/DataStorePractice.rbxl/file
Пікірлер: 88
i always used to think learning data stores for me was going to be a nightmare, this man proved me wrong in 15 lines of code
I watched videos for hours and didn't understand it but your 10 minute video was so simple and wall explained, thanks alot.
thanks for keeping it simple and sticking to the point, every tutorial I watched was just people giving awful explanations, trying to explain pcalls and other code separate from datastore overloading my brain
Honestly i don't understand why people think data store as something nightmarish. On the start it was annoying. Now it's nothing.
@iamLudius
4 ай бұрын
It actually gets so simple later on
@nallejansson4329
4 ай бұрын
whats the hardest thing in roblox scripting to grasp?
@rakirat640
3 ай бұрын
@@iamLudiuscan you help me with datastore?
@jayjohnson2393
Ай бұрын
@@nallejansson4329probably mastering cframes since it requires deep mathimatical knowledge
@notactuality
Ай бұрын
@@nallejansson4329probably oop once you grasp that you can pretty much do anything
I only have one thing to say: Thank you so much for explaining this, now I understand datastores.
Thanks dude! You helped me overcome the hell of not understanding data stores. Can you also post a video explaining in more detail about data stores, such as what is pcall function and more?
thank you i've recently been struggling on data store and now after a lot of practice, i can make it from scratch!
@iamLudius
4 ай бұрын
That's great man! Keep up the good work and best of luck with your dev journey :]
@Avysilvasan
3 ай бұрын
w, i want to achieve that level
Hey nice video, you helped a lot, suggestion: Could you make a video like this with datastores but instead it is where you buy something from a shop and the thing you bought saves in your inventory after you die and/or leave the game.
finally someone who EXPLAINS datastoring and not makes me copy their script
finally someone who explains the damn code
this guy is extremely underrated
bestt explanation
@iamLudius
3 ай бұрын
I'm happy to hear that :]
Everyone gangsta til roblox datastores go down
personally i use profileservice and it works great, finally i managed to master even this lol, even though i guess ima abandon game development, somehow it doesnt fit me, and probably its just fact i always got no game ideas to make, and i work alone ):
@iamLudius
4 ай бұрын
I've never really heard about Profile Service, but I'll take a look into it when I get the chance
I use profile service, because get and setAsync stops working after 200 players in your game in total. Profile Service is just a lot more reliable and it's great for server shut downs.
@iamLudius
4 ай бұрын
I had never heard about this, but thanks for the heads up, I'll look into it :]
@Chlrintruc
3 ай бұрын
200players in a server
@RegularJordi
3 ай бұрын
@@Chlrintruc Yeah, just read that. But It is still really inefficient to use when there are these adanced things out there (even bloxfruits uses it)
@Chlrintruc
3 ай бұрын
@@RegularJordi ok then I'll try to learn it.
I like your detailed explanation an i tried it in my obby game but it is not working can you please make a video on it? please
a good day when ludius drops
@iamLudius
4 ай бұрын
Damn, this really means a lot to me, I'm glad you enjoy my content. And also thanks for the comment :]
@HitmanDevForPresident
4 ай бұрын
@@iamLudius hell yeah I even bought that scripting book cause of you to get better for my game as well
"Datastore: A Sripter's Worst Nightmares Explained" Meanwhile: :GetAsync() and :SetAsync()
@iamLudius
4 ай бұрын
Literally, it's that simple, people tend to overthink it jajajaja
@imthebestmayne122
3 ай бұрын
@@iamLudius Eh, it's really not that simple. Maybe if you are just using a simple cash system, and that is the only key you need to store. I would say the way you described it is DataStores at their simplest form. They can get much more complex.
@urnix69
Ай бұрын
@@imthebestmayne122 Ludius explained it in a simple way so that datastores are more approachable. Once you understand the fundamentals of datastores, that means the more "complicated" datastores aren't as complicated as they seem.
@yoshissbkgod6285
Ай бұрын
Just create a good module script It works as well
@imthebestmayne122
Ай бұрын
@@urnix69 gotta say I disagree with this. No disrespect either to you or the poster. Most of this information (and more) can just be read from the data store api page on the roblox documentation page. What is much harder is finding information about more complicated data stores. Look at somethibt like ProfileService or DataStores2. I guess this video helps understand it at a very rudimentary level, but nothing further than that.
how can i make gui button that adds value to player datastore?
tbh for me data store wasn't and isn't my worst nightmare cause 1st place for worst nightmare takes math and object oriented programming
Love your videos Ludius! I am looking for a scripter for a game I am working on. Would you be interested?
@iamLudius
4 ай бұрын
As much as I'd like to help you and any other person that may need me, at the moment my schedule's packed, sorry man :[ But maybe I can help you through the dev calls inside the discord server?
Hello, I keep having an issue where it says player has data but it doesn't give the amount to the player. Anything I could try?
@secretusgg
Ай бұрын
Maybe data didn't save after leaving in the first place, because of how quickly the server shuts down. Add a delay, it helped me: game:BindToClose(function() wait(1) end)
ill pay 50 robux who will do working DataStore script (i have 3 values) i checked the 3 tutorials and all of these tutotials doesn't work (ChatGPT also didn't help me)
@CyanNStuff
3 ай бұрын
but it says how to make it in the video!!
@rakirat640
3 ай бұрын
@@CyanNStuff it didnt work
@CyanNStuff
3 ай бұрын
@@rakirat640 did you put the script in serverscriptservice?
@Deadlox3
3 ай бұрын
I’ll do it
@potolog101
Ай бұрын
@@rakirat640 the video EXPLAINS it in an approcheable way. basically i had NO IDEA how datastore works, but after watching this video which showed examples of using numbers, i used my brain to think of the other ways i could use datastore based on the knowledge i had.
i tried using this datastore script with a boolvalue, but it didn't work
guys heres an advice from me: dont make datastores saving only on leaving! Make it save every time coins change instead, because if its only when you leave, if you can drop coins in your game then you can make a dupe glitch on private servers basically player1 drops 5 coins to player2, player2 leaves and the 5 coins save, but player1 SHUTS DOWN his private server so the data doesnt save, so he has 5 coins again
@AxajonOFFICIAL
Ай бұрын
bro can you please tell how we can do that properly?
@darkarcher9086
Ай бұрын
@@AxajonOFFICIALits so simple, if you have an inventory system or currency just make it save every time it gets changed, like make a new function that runs whenever the value changes and when it does it sets your async and updates.
I still dont get it😭
w vid
alll i hear the word is "right"
i love datastores and hate anim and shi lol
doesnt work i watched 194 videos and no one worked t
Let's say there is two data. Coins and Levels. How can you save both?
@LanTriBlox
3 ай бұрын
im pretty sure there is a more efficient way to do so then what im saying but just make 2 seperate datastores.
@iamLudius
2 ай бұрын
U can do that or just save put them both in a table and just save it to one single player data datastore
@iamLudius
2 ай бұрын
Put them both in a table before saving
@banditentertainment917
14 сағат бұрын
@@iamLudius How so? Would it be like: You declare a table like "playerData = {}" and then you would use table.insert(table, value) in the player connect function? Then call that table when the player leaves?
stopped watching at "wait(1)"
type stuff
@iamLudius
4 ай бұрын
That's wassup
is datastore support JSON?
@iamLudius
2 ай бұрын
No idea what JSON means, sounds familiar tho
@yoshissbkgod6285
Ай бұрын
Yes if you put the json data in a table first by using HttpsService:JSONDecode() you can save it
@baconph2578
Ай бұрын
@@iamLudius Javascript Object Notation is a storage in website which converts all the tables into string!
@baconph2578
Ай бұрын
it's like a datastore you can save your data just like JSON
SECOND
@iamLudius
4 ай бұрын
That's wassup!
you should speak slower, i needed to put the video on speed 0.75
rookie
FIRST
@iamLudius
4 ай бұрын
That's what I'm talking about!
@RealAimYT
4 ай бұрын
@@iamLudius yessir
kjk
@iamLudius
4 ай бұрын
You always boosting your algorithm with your comments jajaajaja I appreciate it :]
@ropemox5550
4 ай бұрын
kjk@@iamLudius