Saving Items In DataStore - Egg Hunt Game Episode 2

Тәжірибелік нұсқаулар және стиль

Learn how to save your eggs or items in my Egg Hunt game series by using DataStores. We will create a folder in the player that stores their eggs, create values that are stored in there when they step on the egg and save/load when they leave and rejoin.
If you would like to take the source code then you can become a Premium channel member for $4.99 / month. This helps to support my channel. You can also learn by copying it yourself if you would not like to become a member.
Become a Member today for exclusive perks and to support my channel!
► / @alvinblox
Subscribe to my KZread channel for more scripting videos:
►kzread.info?sub...
► Watch my full beginner scripting series: goo.gl/k3erz2
Got video suggestions or feedback? Contact me via my website
►www.alvinblox.com/
Roblox username: Alvin_Blox
The music in this video is licensed from Epidemic Sound
www.epidemicsound.com

Пікірлер: 446

  • @thesnowfalke124
    @thesnowfalke1243 жыл бұрын

    Alvin can you pls do part 3 I have been waiting for so long, also I love your videos you teach me so much

  • @ZOMBYSPIDER
    @ZOMBYSPIDER4 жыл бұрын

    Who have taught me everything, I now watch your videos not to learn, but because I enjoy them!

  • @zhronic7674
    @zhronic76744 жыл бұрын

    Thank you so much for this channel I have been watching your how beginners guild to script series and I just made my first script without a tutorial. All it does is spawn a part into the work space then slowly make it invisible but it’s a start. Because of you I am able to start my journey of developing simple games in Roblox!!!

  • @waflenzas
    @waflenzas4 жыл бұрын

    Bro, you're the best dude i've ever seen. Im still watching ur scripting tutorials for 3 hours straight cause they are amazing. Keep uploading cause there are more people like me that just love to watch and learn from you. Thank you so much.

  • @lukeaduke1213
    @lukeaduke12134 жыл бұрын

    Been watching the beginner scripting playlist, keep up the good work and here is a code i made: Part1 = (1) if 1 then game.Workspace.Baseplate.BrickColor = BrickColor.new ("Really red") wait(3) else game.Workspace.Part1.Anchored = true end

  • @jasithis4749
    @jasithis47494 жыл бұрын

    I needed this for a different game so I came to your channel and say you uploaded!

  • @frazomaniav2973
    @frazomaniav29734 жыл бұрын

    YES! I love your channel alvin! Always helps

  • @Sufganiyot
    @Sufganiyot3 жыл бұрын

    Thanks for making this, AlvinBlox. I was able to use the script to save items you can buy in a shop (like particles and emotes), and it works perfectly!

  • @techhie9900
    @techhie99004 жыл бұрын

    happy Easter Alvin! Hope you are doing good.

  • @Skyze_YT
    @Skyze_YT4 жыл бұрын

    Alvinblox you have helped me make my own game Thankyou so much can’t wait to learn more in future videos

  • @joel2764
    @joel27643 жыл бұрын

    Yes it works thank u so much! please do more of these series

  • @RelativeResonance
    @RelativeResonance2 жыл бұрын

    Dude this video encapsulates everything thats important about the topic. And you made it in less than 55 minutes. XD

  • @Jexxee
    @Jexxee4 жыл бұрын

    Love this series so far

  • @nabilarmouch6107
    @nabilarmouch61074 жыл бұрын

    Alvin can u make a video that shows how to save item in game.

  • @glom9988

    @glom9988

    4 жыл бұрын

    Yes i need that.

  • @jasithis4749

    @jasithis4749

    4 жыл бұрын

    Nabil Armouch That would be very helpful

  • @Gamer-py4mq

    @Gamer-py4mq

    4 жыл бұрын

    Make a skip stage In obby which will cost robux or in game coins

  • @TheTeaLordRBLX

    @TheTeaLordRBLX

    4 жыл бұрын

    I really really need that for my army game

  • @cyber7000
    @cyber70004 жыл бұрын

    Also you first podcast really helped my way of thinking of scripting because I used to always have these amazing ideas but I wasn’t good at scripting so I could never execute them

  • @mistwrath5957
    @mistwrath59574 жыл бұрын

    I use to make basic games just free models no scripts, nothing. Now I know how to script currency, currency increaser etc. ty Alvin

  • @lheylah
    @lheylah4 жыл бұрын

    Early again! Love your videos it helps me a lot!

  • @devontedaley3493
    @devontedaley34933 жыл бұрын

    Thanks Alvin works prefect

  • @clockblox3189
    @clockblox31894 жыл бұрын

    Your videos are amazing!

  • @dangerousstudiogaming8321
    @dangerousstudiogaming83214 жыл бұрын

    Hi Alvin! I was in your TPS: Ultimate Soccer game. Thanks for the ScreenShot!

  • @dsx2360
    @dsx23602 жыл бұрын

    for some reason it didnt work the first time, so i just copied the code word for word and it works now! I can say I am satisfied with this video.

  • @786simple
    @786simple4 жыл бұрын

    Nice Video I've leant more than ever by watching these vids

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    Thanks 👍

  • @brickopedia1584
    @brickopedia15844 жыл бұрын

    Could you add a Eggs Collected value in leaderstats? That would be cool!

  • @Mr_Jorge

    @Mr_Jorge

    Жыл бұрын

    you could add that yourself

  • @chickennuggieswithmayonnaise
    @chickennuggieswithmayonnaise4 жыл бұрын

    YES I REALLY WANTED THIS TO COME OUT tysm!

  • @flamegame366
    @flamegame3664 жыл бұрын

    Hi Alvin yesterday I finished your beginner series

  • @JustyRBLX
    @JustyRBLX3 жыл бұрын

    Alvin THANK YOU!

  • @arjplayz3680
    @arjplayz36804 жыл бұрын

    Yes im looking forward to more!

  • @ardev4524
    @ardev45244 жыл бұрын

    Alvin Your the best man. I was once a beginner (4 Years Ago) and Now Im Much much much better I can script alot so thanks man :)

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    Happy to hear that!

  • @kingcoveryepic

    @kingcoveryepic

    4 жыл бұрын

    AlvinBlox hey Alvin, I was wounding if you could do a video on how to make a StarterCharacter but still keep the players hats or skin color. Games like a Flop where your character is a fish but it still has your hats from the site.

  • @thaijumpa
    @thaijumpa4 жыл бұрын

    F in the chat for Alvin’s young voice we miss him

  • @tehosdevs1727

    @tehosdevs1727

    4 жыл бұрын

    uh that's weird.. ever heard of growing up?

  • @sorathornsamanyaphorn8240

    @sorathornsamanyaphorn8240

    4 жыл бұрын

    Lol

  • @galaxy_rblx7149
    @galaxy_rblx71494 жыл бұрын

    Nice vid I like it soo much!

  • @peep113
    @peep1134 жыл бұрын

    Gonna save in playlist this one! I waited tutorial about this and now it's here! I don't know how to datastore something thats - not a value

  • @PixelLYT

    @PixelLYT

    4 жыл бұрын

    Idk how to use datastote lol

  • @krystinscott5041
    @krystinscott50412 жыл бұрын

    Hi Alvin - Thank you for these tutorials. I was learning quite a bit going through the Egg Hunt Series but I can only find 2 videos in the series. Are, there more? I'd like to create a "Find It" game for the kids. Similar to Find the Markers. I imagine that it would be very similar to an egg hunt except the eggs would be already hidden and not falling from the sky and there would only be one of each kind of egg where currently in this series the spawns create more than 1 of the same type of egg.

  • @nicolaadams618
    @nicolaadams6184 жыл бұрын

    Love your vids Alvin your the best

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    Thank you very much

  • @takfufiktsaidi250
    @takfufiktsaidi2502 жыл бұрын

    You're every developers hero

  • @babyoda5
    @babyoda53 жыл бұрын

    Man, you're really making my life easier

  • @vip9658

    @vip9658

    2 жыл бұрын

    I have tried this 3 times. Can you please give me the free model?

  • @IcyBlox
    @IcyBlox4 жыл бұрын

    Alvin inspired me to make my own videos!

  • @gadx3250
    @gadx32504 жыл бұрын

    Wow this is useful and cool😀😀

  • @walter_luyo
    @walter_luyo4 жыл бұрын

    When you hover over the keycard reader can you make a interaction system to open the sliding door when pressing "E"? can u show how to make that please?

  • @radium4353
    @radium43534 жыл бұрын

    Hey alvin, if you could finish off this egg hunt series with the inventory system or some sort of display GUI that shows the eggs, that would be amazing. Thanks!

  • @DustinSpain

    @DustinSpain

    2 жыл бұрын

    I am looking for episode 3 as well.

  • @NacoPercyIsKool

    @NacoPercyIsKool

    2 жыл бұрын

    @@DustinSpain me too

  • @DazedBeats1

    @DazedBeats1

    Жыл бұрын

    Me too

  • @naomistewart5612
    @naomistewart56124 жыл бұрын

    Early! I love your videos so much. They've helped me a ton.

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    Glad you like them!

  • @Arbuzanchik
    @Arbuzanchik3 жыл бұрын

    WWWOOOOOW Dude you are the coolest! THANKS TO YOU I WILL MAKE EGG HUNT 2021!

  • @vip9658

    @vip9658

    2 жыл бұрын

    give me the model with savings PLEASE!

  • @Aykorblx
    @Aykorblx4 жыл бұрын

    Hey, Alvin! Can you tell me what software do you use to draw on the screen? You have used it on the Beginner Scripting videos.

  • @jackuk2700
    @jackuk27004 жыл бұрын

    Hey Alvin! Amazing job on the uploads and I’m starting to get the hang of scripting But can you do ether updated mobile support tutorials or dialog scripting tutorials? Like how the pizza place cashier role works

  • @windowlookermusic1687
    @windowlookermusic16874 жыл бұрын

    Thx so much

  • @jocelynhunter2359
    @jocelynhunter2359 Жыл бұрын

    Thank-you for all your excellent tutorials. I am finding in this one that the bind seems to make things more inconsistent - sometimes it finds player.removing and sometimes not, which is frustrating. Whereas if I remove it, it triggers correctly all the time. Any knowledge on known bugs or troubleshooting this function?

  • @pcuber195
    @pcuber1954 жыл бұрын

    Thanks for making a video on this

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    It's my pleasure

  • @lineofscripting6304
    @lineofscripting63044 жыл бұрын

    I already made a inventory gui lol btw nice tutorial!

  • @andrei8708
    @andrei87084 жыл бұрын

    I really needed this! In my game I made originaly a code that gets saved and based of its digits it changes the "unlocked" bool value. If the digit was 1 then true and if 2 then false. I made that with modulus.

  • @GamingWafflez
    @GamingWafflez4 жыл бұрын

    I was wondering if you could make a tutorial on a waiting on player loading screen kind of system. Basically, for example, lets say you select a character, and then there’s a loading screen while waiting for the other player to quote on quote pick their character. Once both players are ready, they are spawned into the world. If you could do a tutorial on that, that would be awesome!

  • @TheWildReportOfficial
    @TheWildReportOfficial4 жыл бұрын

    Hey Alvin, thanks for this video! I have the same code as you except for one line that gives players a 'point' in the "Touched Egg Clone Event". It runs fine, but when I added this script to EggSpawns the eggs no longer spawn. I made sure everything was exactly the same. Is it possible that my 'add point' line could mess things up that bad? It worked fine up until I added this new code. Thank you!

  • @flylika
    @flylika4 жыл бұрын

    Me : Woah AlvinBlox : Working On The Video

  • @Pixelnyan_XD

    @Pixelnyan_XD

    4 жыл бұрын

    "on the video" or "on a video"?

  • @randomname966
    @randomname966 Жыл бұрын

    Hey AlvinBlox super awesome tutorial I wanted to know how I could save parts and this video clearly is detailed and awesome. My only question is, if this is a popular method in the developer community. The reason I ask this question, is because this method IS GREAT!

  • @cossinle
    @cossinle4 жыл бұрын

    Just in time my dude

  • @DurosModz
    @DurosModz4 жыл бұрын

    Hey Alvin! You're amazing, you're the reason I learned how to script and I recently broke the 10k robux mark with my game!

  • @clevxz7969

    @clevxz7969

    4 жыл бұрын

    Wow dude that so cool I really hope I can make some robux with my new game because I haven’t ever before 😔

  • @zoeyie8388
    @zoeyie83884 жыл бұрын

    Omg i saw your username IN THE SERVER thank u for the egg!

  • @bojanivanovski1342
    @bojanivanovski13424 жыл бұрын

    Hey, i have a question. I wanna make a ChooseCharacter at start of his/her first login and then he continue playing with that character. Can i to make that?

  • @tg24020
    @tg240204 жыл бұрын

    How would you do this if you used a collect GUI to get the eggs, (like you click a GUI to get an egg) what in the script would have to be changed?

  • @liamc7343
    @liamc73434 жыл бұрын

    How would you make a counter cor each egg you get? So like, if I get an egg it would be, 1/5.

  • @restonic4
    @restonic44 жыл бұрын

    can u make invite friends for reward gui and rewards if your friend join the game?

  • @gcaca
    @gcaca4 жыл бұрын

    Alvin ITS the best

  • @RelativeResonance
    @RelativeResonance2 жыл бұрын

    Do game Devs of big games have an additional step to ensure data is saved, like if in the BTC function it didn't save for some reason it repeats the process?

  • @EpicPepsi
    @EpicPepsi4 жыл бұрын

    Hi love your vids just a suggestion can u make a video on how to make a backpack maximum and be able to buy better ones Byeee

  • @sweetenedmoonlight
    @sweetenedmoonlight2 жыл бұрын

    Is there a way to make a different GUI show up if you’ve already found the egg?

  • @stretchyacorn28
    @stretchyacorn284 жыл бұрын

    Is there any way you can make those eggs be in your inventory when you collect them so you can wear them like the easter eggs in the easter egg hunts

  • @nikyt36
    @nikyt363 жыл бұрын

    Another great vid to work through! I think this will help with my quest to build a... quest system :D HELP! I'm getting the same issue I had with my earlier attempt with this. The inserted values in the Eggs folder don't come back. The data us there but appears to be empty when I print out #eggdata for example... I've set the game to use the DataStore API, are there any other config options I need to set?

  • @nikyt36

    @nikyt36

    3 жыл бұрын

    Apologies!!! My error, it's all working now :) On the data load I was not referencing the Eggs folder in replicated storage correctly! Hopefully I can build on this for my quest system. The Eggs will become Folders with values inside of them. No idea how I'm supposed to iterate through sub folders, hints welcome :D

  • @squidzillathefish2579
    @squidzillathefish25794 жыл бұрын

    Tip! I was puzzling about this and I found the reason, I dont know if you had this problem but in Data script on the 34th line theres { } these types of brackets, NOT ( ) these I hope this helps you avoid my mistake

  • @templars44
    @templars444 жыл бұрын

    If there was a script that was interfering with another script. Is there a way to disable the script like for example if "C" on your keyboard is clicked?

  • @roxannetomkinson437
    @roxannetomkinson4374 жыл бұрын

    Do u have any or can u make a book about scripting. It would really help

  • @multinode
    @multinode4 жыл бұрын

    Alvin, I have a question. Can you make an airplane system like Plane Crazy or Naval Warfare? It would be lovely.

  • @PixelLYT

    @PixelLYT

    4 жыл бұрын

    YES

  • @multinode

    @multinode

    4 жыл бұрын

    @@dripku2837 Because I want to expand my and other people's programming skills in LUA, it could be useful.

  • @Omar-no3vb
    @Omar-no3vb4 жыл бұрын

    Hey Alvin! Can you make a video regarding animations? Specifically punch animations. I want to make my own punch animation, but I don’t know how to make it do damage. Please and thank you

  • @curlsroblox9712
    @curlsroblox97123 жыл бұрын

    Does anybody know how to make this so there’s an inventory that shows which eggs you collected?

  • @RealNickeo
    @RealNickeo4 жыл бұрын

    Loving this series, can’t wait for part 3. Luckily, everything has worked (almost) 100% perfectly first try for me! Now I wait 😎

  • @michmaz
    @michmaz4 жыл бұрын

    Hej Alvin can you make a video about when you grab things that floats in the air like in the game Lumber tycoon 2?

  • @ScriptiqueOfficial
    @ScriptiqueOfficial4 жыл бұрын

    Thx so much help

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    No problem

  • @kfc8278
    @kfc82784 жыл бұрын

    Alvin im having trouble with somthing. Ive made an obby but im not able to change the ammount of maxplayers. when i try to, its grey and i cant. is this a glitch or is there a reason caise im confused.

  • @beagerarsenal4523
    @beagerarsenal45234 жыл бұрын

    How do you make wall running for parkour games and stuff?

  • @Trippie
    @Trippie4 жыл бұрын

    Could you possibly make a video of how to make a game tutorial gui? Like how to play the game, move etc

  • @CodyMoore74
    @CodyMoore744 жыл бұрын

    If you could make an E to interact that functions like games like Jailbreak where it stays on the interactable object, follows you, and detects which interaction is closest using magnitude or something would be great!

  • @scottyt5031
    @scottyt50314 жыл бұрын

    Can you make it so that a certain egg spawns in a specific area as in a snow biome with a winter egg and no other eggs can spawn there but their “areas” and places they’re found in. It would help me a lot please.

  • @Anthony-sv5hw
    @Anthony-sv5hw4 жыл бұрын

    can you teach me how to make a keybind gui to change the order of your weapons? thanks

  • @edenshire507
    @edenshire5072 жыл бұрын

    I like how you can type your own player ID from the top of your head

  • @stopthemop7849
    @stopthemop78494 жыл бұрын

    what is the program that you use, where you can draw on your screen while in Roblox studio? :D

  • @louispangilinan8324
    @louispangilinan83244 жыл бұрын

    You should make a egg collection to show the pictures of the eggs when collected and how many eggs you have

  • @alienhive2947
    @alienhive29474 жыл бұрын

    I’m new to scripting and I just wanted to ask you if you can make a video about a script that detects how many players you have killed in a certain period of time (for example killing 3 players in 3 seconds will kick you) Please let me know if you can do it for guns or gears. thanks

  • @fresh.99
    @fresh.992 жыл бұрын

    tysm

  • @UniverseCsky
    @UniverseCsky4 жыл бұрын

    Why did you have to use :GetService tip refer to replicated storage?

  • @rahulmehta7476
    @rahulmehta74764 жыл бұрын

    I supported you with your star code.

  • @GlitchedWalker1
    @GlitchedWalker14 жыл бұрын

    Hello Alvin, I was wondering how to make a game like traffic rush? Can you make a video on it

  • @weldify
    @weldify4 жыл бұрын

    hey alvin, can you make a video that explains how to make a one-time developer product prompt and use processreceipt to give the player what they bought?

  • @mrname0420
    @mrname04204 жыл бұрын

    Im not making a egg hunt game but there are items i need to save. I don't know if this will work with int values but i hope it will

  • @bombirbarchives
    @bombirbarchives4 жыл бұрын

    im still waiting for easter! i need that tool grip plugin!

  • @JNerd4468
    @JNerd44684 жыл бұрын

    alvin i gots a question..... can plugins have viruses like models do?

  • @notstonks8436
    @notstonks84364 жыл бұрын

    Alvin pls do a daylight cycle with ambient sound

  • @r3hab.
    @r3hab.4 жыл бұрын

    ty

  • @leoskits5982
    @leoskits59824 жыл бұрын

    Please make a video on how to make a cutscene, please like the one in entry point or in the camping games

  • @DagamingbeastXL
    @DagamingbeastXL4 жыл бұрын

    You should do a video explaining "Nil," and how to use it efficiently.

  • @MatteoP04ita
    @MatteoP04ita4 жыл бұрын

    Hey AlvinBlox! Recently there was an exploiter in my friend's game. He changed his walkspeed locally and his position was replicated to the server, so he was able to move faster. On the developer forum i have not found a good solution to exploiters. A solution would be to teleport back players that change position too fast, but in my friend's game there are cars... Do you know what to do in this cases?

  • @originalpacificalsun8776
    @originalpacificalsun87764 жыл бұрын

    Hey Alvin, i need to make a speed game. so can you make a video on how to make a script when you start moving you start off slow but as your go on you move even faster, and renews the running animation, if you can do that, thank you!

  • @Pixelnyan_XD
    @Pixelnyan_XD4 жыл бұрын

    Can u make a tutorial of how to make a piggy style escape? With planks and hammer or something like that please?

  • @pieguy7310
    @pieguy73104 жыл бұрын

    The old egg hunts were cool

Келесі