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

  • @legally4946
    @legally4946Ай бұрын

    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

  • @user-lt2dc9eg8m
    @user-lt2dc9eg8m22 күн бұрын

    I watched videos for hours and didn't understand it but your 10 minute video was so simple and wall explained, thanks alot.

  • @miloquespace2642
    @miloquespace26422 ай бұрын

    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

  • @official_mosfet
    @official_mosfet4 ай бұрын

    Honestly i don't understand why people think data store as something nightmarish. On the start it was annoying. Now it's nothing.

  • @iamLudius

    @iamLudius

    4 ай бұрын

    It actually gets so simple later on

  • @nallejansson4329

    @nallejansson4329

    4 ай бұрын

    whats the hardest thing in roblox scripting to grasp?

  • @rakirat640

    @rakirat640

    3 ай бұрын

    ​@@iamLudiuscan you help me with datastore?

  • @jayjohnson2393

    @jayjohnson2393

    Ай бұрын

    @@nallejansson4329probably mastering cframes since it requires deep mathimatical knowledge

  • @notactuality

    @notactuality

    Ай бұрын

    ​@@nallejansson4329probably oop once you grasp that you can pretty much do anything

  • @urnix69
    @urnix69Ай бұрын

    I only have one thing to say: Thank you so much for explaining this, now I understand datastores.

  • @AxajonOFFICIAL
    @AxajonOFFICIALАй бұрын

    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?

  • @SpyGlass610
    @SpyGlass6104 ай бұрын

    thank you i've recently been struggling on data store and now after a lot of practice, i can make it from scratch!

  • @iamLudius

    @iamLudius

    4 ай бұрын

    That's great man! Keep up the good work and best of luck with your dev journey :]

  • @Avysilvasan

    @Avysilvasan

    3 ай бұрын

    w, i want to achieve that level

  • @sidsays1340
    @sidsays1340Ай бұрын

    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.

  • @abdelgoated
    @abdelgoated26 күн бұрын

    finally someone who EXPLAINS datastoring and not makes me copy their script

  • @yyhhttcccyyhhttccc6694
    @yyhhttcccyyhhttccc6694Ай бұрын

    finally someone who explains the damn code

  • @YourLocalBusinessMan1
    @YourLocalBusinessMan121 күн бұрын

    this guy is extremely underrated

  • @tricksen
    @tricksen3 ай бұрын

    bestt explanation

  • @iamLudius

    @iamLudius

    3 ай бұрын

    I'm happy to hear that :]

  • @Dimayuplay
    @Dimayuplay2 күн бұрын

    Everyone gangsta til roblox datastores go down

  • @Antonio-vf2xj
    @Antonio-vf2xj4 ай бұрын

    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

    @iamLudius

    4 ай бұрын

    I've never really heard about Profile Service, but I'll take a look into it when I get the chance

  • @RegularJordi
    @RegularJordi4 ай бұрын

    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

    @iamLudius

    4 ай бұрын

    I had never heard about this, but thanks for the heads up, I'll look into it :]

  • @Chlrintruc

    @Chlrintruc

    3 ай бұрын

    200players in a server

  • @RegularJordi

    @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

    @Chlrintruc

    3 ай бұрын

    @@RegularJordi ok then I'll try to learn it.

  • @IndianParthGaming
    @IndianParthGamingАй бұрын

    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

  • @HitmanDevForPresident
    @HitmanDevForPresident4 ай бұрын

    a good day when ludius drops

  • @iamLudius

    @iamLudius

    4 ай бұрын

    Damn, this really means a lot to me, I'm glad you enjoy my content. And also thanks for the comment :]

  • @HitmanDevForPresident

    @HitmanDevForPresident

    4 ай бұрын

    @@iamLudius hell yeah I even bought that scripting book cause of you to get better for my game as well

  • @chiseledcheese
    @chiseledcheese4 ай бұрын

    "Datastore: A Sripter's Worst Nightmares Explained" Meanwhile: :GetAsync() and :SetAsync()

  • @iamLudius

    @iamLudius

    4 ай бұрын

    Literally, it's that simple, people tend to overthink it jajajaja

  • @imthebestmayne122

    @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

    @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

    @yoshissbkgod6285

    Ай бұрын

    Just create a good module script It works as well

  • @imthebestmayne122

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

  • @Outline.Origin
    @Outline.Origin2 ай бұрын

    how can i make gui button that adds value to player datastore?

  • @maciezez
    @maciezezАй бұрын

    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

  • @vvjgee4g
    @vvjgee4g4 ай бұрын

    Love your videos Ludius! I am looking for a scripter for a game I am working on. Would you be interested?

  • @iamLudius

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

  • @bblockaa
    @bblockaaАй бұрын

    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

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

  • @rakirat640
    @rakirat6403 ай бұрын

    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

    @CyanNStuff

    3 ай бұрын

    but it says how to make it in the video!!

  • @rakirat640

    @rakirat640

    3 ай бұрын

    @@CyanNStuff it didnt work

  • @CyanNStuff

    @CyanNStuff

    3 ай бұрын

    @@rakirat640 did you put the script in serverscriptservice?

  • @Deadlox3

    @Deadlox3

    3 ай бұрын

    I’ll do it

  • @potolog101

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

  • @1440hz
    @1440hz4 күн бұрын

    i tried using this datastore script with a boolvalue, but it didn't work

  • @darkarcher9086
    @darkarcher9086Ай бұрын

    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

    @AxajonOFFICIAL

    Ай бұрын

    bro can you please tell how we can do that properly?

  • @darkarcher9086

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

  • @CollyIsEpic
    @CollyIsEpic5 күн бұрын

    I still dont get it😭

  • @Avysilvasan
    @Avysilvasan3 ай бұрын

    w vid

  • @redash4239
    @redash423915 күн бұрын

    alll i hear the word is "right"

  • @OniEye
    @OniEyeАй бұрын

    i love datastores and hate anim and shi lol

  • @secret_frosty
    @secret_frosty2 ай бұрын

    doesnt work i watched 194 videos and no one worked t

  • @areuFPS
    @areuFPS3 ай бұрын

    Let's say there is two data. Coins and Levels. How can you save both?

  • @LanTriBlox

    @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

    @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

    @iamLudius

    2 ай бұрын

    Put them both in a table before saving

  • @banditentertainment917

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

  • @user-om4fe9yx1c
    @user-om4fe9yx1c15 сағат бұрын

    stopped watching at "wait(1)"

  • @Theycallmesplitt
    @Theycallmesplitt4 ай бұрын

    type stuff

  • @iamLudius

    @iamLudius

    4 ай бұрын

    That's wassup

  • @shitpost_xxx
    @shitpost_xxx3 ай бұрын

    is datastore support JSON?

  • @iamLudius

    @iamLudius

    2 ай бұрын

    No idea what JSON means, sounds familiar tho

  • @yoshissbkgod6285

    @yoshissbkgod6285

    Ай бұрын

    Yes if you put the json data in a table first by using HttpsService:JSONDecode() you can save it

  • @baconph2578

    @baconph2578

    Ай бұрын

    @@iamLudius Javascript Object Notation is a storage in website which converts all the tables into string!

  • @baconph2578

    @baconph2578

    Ай бұрын

    it's like a datastore you can save your data just like JSON

  • @pqgcDevelopment
    @pqgcDevelopment4 ай бұрын

    SECOND

  • @iamLudius

    @iamLudius

    4 ай бұрын

    That's wassup!

  • @f4s.realone
    @f4s.realone4 күн бұрын

    you should speak slower, i needed to put the video on speed 0.75

  • @friendlybuilder2414
    @friendlybuilder2414Ай бұрын

    rookie

  • @RealAimYT
    @RealAimYT4 ай бұрын

    FIRST

  • @iamLudius

    @iamLudius

    4 ай бұрын

    That's what I'm talking about!

  • @RealAimYT

    @RealAimYT

    4 ай бұрын

    @@iamLudius yessir

  • @petraral8868
    @petraral88684 ай бұрын

    kjk

  • @iamLudius

    @iamLudius

    4 ай бұрын

    You always boosting your algorithm with your comments jajaajaja I appreciate it :]

  • @ropemox5550

    @ropemox5550

    4 ай бұрын

    kjk@@iamLudius