How to Store Multiple Values with Data Store - Roblox Studio Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

ความคิดเห็น • 370

  • @TheMrDeast
    @TheMrDeast ปีที่แล้ว +8

    Even if two years already passed, this tutorial is still incredibly useful. Thank you so much, I really needed this tutorial.

  • @danblair4874
    @danblair4874 4 ปีที่แล้ว +10

    You are such an underrated TH-camr. I hope you get a big break soon, you deserve way more views.
    All the information you provide is top notch, thank you as always.

  • @calcumalations1235
    @calcumalations1235 4 ปีที่แล้ว +30

    underrated, i expected poopy tutorial but jeez this good

    • @TechwithMikeYT
      @TechwithMikeYT  4 ปีที่แล้ว +10

      Glad I could be better than poopy 💩

    • @calcumalations1235
      @calcumalations1235 4 ปีที่แล้ว +3

      @@TechwithMikeYT i meant this was great!
      thanks to this i could make my exp system work!

    • @thatghost281
      @thatghost281 4 ปีที่แล้ว +2

      💩💩💩💩💩

  • @LucasScripting
    @LucasScripting ปีที่แล้ว +1

    Am watching this in 2023 and it's still working. A very unique script, I watched many ones before and I never saw this method, but it's working perfectly! Very well done. +1 Sub

  • @itslumbergaming6821
    @itslumbergaming6821 3 ปีที่แล้ว

    i have made so many games but datastores ruined it i never knew how to save any data and i watched so many videos and never understanded i used free models of datastores to save 1 value and never any more and now watching this video and this all working has been amazing i have so many ideas thank you so much

  • @abigailroberts5651
    @abigailroberts5651 ปีที่แล้ว +3

    Amazing explanations. Datastores have always confused me and you made it sound really simple. I hate a tutorial that is just copy and pasting the code without understanding how it works.

  • @TonyLuxton
    @TonyLuxton 3 ปีที่แล้ว +9

    You're the best for leaving a link for the code!!!

  • @cannibalsproduction8707
    @cannibalsproduction8707 2 ปีที่แล้ว +1

    Hi, I'm a little game dev on Roblox, I have problem: when I'm trying to make 6 values ("NumberOne", "NumberTwo" ... "NumberSix" and changing everythink to make it work right, it don't save data. Could you help me?

  • @f1sh3rmanb88
    @f1sh3rmanb88 3 ปีที่แล้ว +1

    @Tech with Mike
    Well I can’t get the leaders tats to save after exiting, I have tried many times, with no success

  • @DTprroductions
    @DTprroductions 3 ปีที่แล้ว +16

    I'm trying to do a Garage for my game, but saving each color and material with their own databases makes the "DataSaving" process lag which then could end with the player's colors not being saved. The solution would be to have one database which holds it all, and this vid shows how to.

    • @ant_2224
      @ant_2224 3 ปีที่แล้ว +1

      Mhm, in my case im trying to make a like a inventory gui i tried to do it myself it worked but it set all the values to true or false depending on the recently changed value ill try this today i hope it can work.

  • @JumpercraftYT
    @JumpercraftYT ปีที่แล้ว +1

    Thanks! Can you tell me how to use bool values instead??

  • @userhasnotbeenfound9026
    @userhasnotbeenfound9026 2 ปีที่แล้ว +1

    idk if anyone need this but you can have multiple leaderstats folders you just have to put another variable like this in createTable
    local function create_table(player)
    local player_stats = {}
    for _, stat in pairs(player.leaderstats:GetChildren()) do
    player_stats[stat.Name] = stat.Value
    end
    -- extra variable begins here
    for _, stat in pairs(player.(ExtraFolder):GetChildren()) do
    player_stats[stat.Name] = stat.Value
    end
    return player_stats
    end

  • @user-wf4of7qk9p
    @user-wf4of7qk9p 4 ปีที่แล้ว +1

    Wheni try this i get an error! "attempt to index number with 'Money'" I tried copy pasting from the website and even tried it through Roblox and not just studio. Please help!

    • @theduke4396
      @theduke4396 4 ปีที่แล้ว

      THIS HAPPENED TO ME TOO

  • @Gregory-0
    @Gregory-0 2 ปีที่แล้ว +1

    i get the error ServerScriptService.Leaderstats:30: attempt to index nil with 'leaderstats'

  • @WoahItsKris
    @WoahItsKris 4 ปีที่แล้ว +1

    Thanks :D This saved me with a simulator I am working on a with a friend, cause I didn't want to use so many datastore slots and run out at some point! This saved me, might get hard to manage at some point but it's better than nothing!

  • @BangForTheBuc
    @BangForTheBuc 2 ปีที่แล้ว

    Thanks. I am not good at datastoring and I keep coming back to this whenever i need to store data

  • @gabrielccbr
    @gabrielccbr 8 หลายเดือนก่อน +2

    Lol i've come here more than 7 times already

  • @neptules
    @neptules 3 ปีที่แล้ว

    All the datas reset when i update my game, how can i fix that?

  • @stefomc1228
    @stefomc1228 3 ปีที่แล้ว

    Thanks dude! You deserve more subscribers!

  • @AsDeadAsARock
    @AsDeadAsARock 2 ปีที่แล้ว

    How do we do it when our leaderstats are in a separate script

  • @VortechBirb
    @VortechBirb 4 ปีที่แล้ว

    I've been looking for like a month trying to find a datastore like this thank youfor making this

  • @DatOneGamerOfficial
    @DatOneGamerOfficial 2 ปีที่แล้ว

    tbh I prefer this channel to all people that want to learn how to script

  • @TimSauers
    @TimSauers 4 ปีที่แล้ว +4

    Hey mike amazing tutorial good job I was wondering if u could make a vid on how to make a egg cost robux so like u go to the egg then it cost a certain amount of robux u buy it then it hatches after u buy it and yeh so could you make that happen maybe? Thanks! And another thing so for a rank I wanna make it to where like sabre simulator how they have classes I wanna do that but idk how to and so say u buy the rank now ur name tag is like overloard so then u leave and when u join back it saves how would that work in a datastore? Could you try and make that cause I know how to do the gui and label and all that but idk how to script it where u buy it and it changes the name tag. Thank you Mike!

    • @bananabandit2
      @bananabandit2 4 ปีที่แล้ว

      Yes Mike please do this I would also like to implement this into my game thanksMike!

    • @hihi-ky6hu
      @hihi-ky6hu 4 ปีที่แล้ว

      Why I see we all had the same idea Mike majority rules! Lets see this tutorial come out!

    • @TimSauers
      @TimSauers 4 ปีที่แล้ว

      @@bananabandit2 thanks

    • @TimSauers
      @TimSauers 4 ปีที่แล้ว

      @@hihi-ky6hu Thanks man

    • @bananabandit2
      @bananabandit2 4 ปีที่แล้ว

      @@TimSauers Np great minds think alike I guess lol

  • @Yingjie100
    @Yingjie100 3 ปีที่แล้ว +1

    Thanks, now I can store multiple values in my BW3 game!

    • @rockms3
      @rockms3 3 ปีที่แล้ว

      No u

  • @FujitsuKyoga
    @FujitsuKyoga 4 ปีที่แล้ว +1

    It saves it when I first exit the game, but it does not save it during my second and subsequent exits and my first statistics always remain. What can I do?

  • @bananabandit2
    @bananabandit2 4 ปีที่แล้ว +5

    Idea from Tim Sauers:Hey Mike amazing tutorial good job I was wondering if u could make a vid on how to make a egg cost robux so like u go to the egg then it cost a certain amount of robux u buy it then it hatches after u buy it and yeh so could you make that happen maybe? Thanks! And another thing so for a rank I wanna make it to where like sabre simulator how they have classes I wanna do that but idk how to and so say u buy the rank now ur name tag is like overloard so then u leave and when u join back it saves how would that work in a datastore? Could you try and make that cause I know how to do the gui and label and all that but idk how to script it where u buy it and it changes the name tag. Thank you Mike!

  • @redspy007
    @redspy007 ปีที่แล้ว

    How would I go about saving a players clothes when leaving the game. If they customise their clothes in game when they leave i want it to save their clothes and load them back up when they rejoin the game

  • @WonderBand24
    @WonderBand24 3 ปีที่แล้ว +4

    Heres the full script
    - Script
    local DataStoreService = game:GetService('DataStoreService')
    local playerData = DataStoreService:GetDataStore('PlayerData')
    local function onPlayerJoin(player)
    local leaderstats = Instance.new('Folder')
    leaderstats.Name = 'leaderstats'
    leaderstats.Parent = player

    local money = Instance.new("IntValue")
    money.Name = 'Money' -- Set to your leaderstats
    money.Parent = leaderstats

    local Kills = Instance.new('IntValue')
    Kills.Name = 'Kills' -- Same here
    Kills.Parent = leaderstats

    local playerUserId = 'Player_'..player.UserId
    local data = playerData:GetAsync(playerUserId)
    if data then
    money.Value = data['Money'] -- Anything thats written that says example money or kills change to whatever
    Kills.Value = data['Kills'] -- valeu you want
    else
    money.Value = 0
    Kills.Value = 0
    end
    end
    local function create_table(player)
    local player_stats = {}
    for _, stat in pairs(player.leaderstats:GetChildren()) do
    player_stats[stat.Name] = stat.Value
    end
    return player_stats
    end
    local function onPlayerExit (player)
    local player_stats = create_table(player)
    local success, err = pcall (function()
    local playerUserId = 'Player_'..player.UserId
    playerData:SetAsync(playerUserId, player_stats)
    end)
    if not success then
    warn('Could not save data')
    end
    end
    game.Players.PlayerAdded:Connect(onPlayerJoin)
    game.Players.PlayerRemoving:Connect(onPlayerExit)

  • @MayonAnlaw
    @MayonAnlaw 3 ปีที่แล้ว

    If I have my old data saved on a other datastore, and I replace the old datastore with this one. will all the data get lost?

  • @4ksmm127
    @4ksmm127 3 ปีที่แล้ว

    Not going to lie, this is better than Alvin Blox, I searched how to learn to script, he just teaches how Roblox Studio works

  • @untrouble8191
    @untrouble8191 2 ปีที่แล้ว

    hm, it doesn't work. At the for loop line, it says that i can't index nil with leaderstats. why is this?
    for _, stat in pairs(plr.leaderstats:GetChildren()) do
    playerStats[stat.Name] = stat.Value
    end
    Thanks!

  • @RavenIsAnArtist
    @RavenIsAnArtist 2 ปีที่แล้ว

    My script oddly won't work for me (I am making a clicking game with rebirths and clicks of course)

  • @VarlMuN
    @VarlMuN ปีที่แล้ว

    it is the same process to add more like saving a item same way to add Level you made?

  • @unnevenn
    @unnevenn 7 หลายเดือนก่อน

    i know this is a very old video but i copied the entire serverscriptservice script and everything was working fine until i added another script to a part in the workspace.
    it was the ContextActinoService:BindAction only in a localscript or whatever it said
    so i just blamed it on the newer script and copied the code and deleted it entirely
    and then the error was still showing up
    i don't know where it came from because it was working fine when it was just that single script
    and then i added a new one and the error started showing up
    now i can't get rid of it how did this happen and how can i get rid of the error
    edit: lol i rewatched vid and it works lol

  • @johanhansson421
    @johanhansson421 3 ปีที่แล้ว

    Ive been searching around for this and every code ive copied havn't worked so I just wanna say THANK YOU beacuse this code actullay works for me and i didn't need to write the code i could just copy it THANKS! :)

  • @dragonslayergaming9511
    @dragonslayergaming9511 3 ปีที่แล้ว

    Help the part in script where it is
    for_, in pairs (player.leaderstats:GetChildren ()))do
    It keeps on saying except '=' when parsing assignment 'in' how to fix

    • @DaGoatStoriez
      @DaGoatStoriez 3 ปีที่แล้ว

      I think you missed the other key, change it to *for _, stat in pairs*

  • @rageoverroblox
    @rageoverroblox ปีที่แล้ว

    if i try to deduct currency then it doesnt save it. i made a shop and when you buy something it shows that you lost the currency but when you rejoin or get more currency it just gives you back what you lost. what should i do?

    • @wonsole
      @wonsole 7 หลายเดือนก่อน

      u prob didny do it right

  • @Ricardo-dn5fr
    @Ricardo-dn5fr 3 ปีที่แล้ว

    How would i add a key to make changes in the datastore with the DataStore Editor plugin?

  • @vincentvandervliet7805
    @vincentvandervliet7805 3 ปีที่แล้ว +1

    Thanks! How to destroy the coin and after a time respawn it again?
    Please help!

  • @svan1921
    @svan1921 4 ปีที่แล้ว

    i have rebirth gui and it says i need 2k coins for rebirth but when i rebirths value gets to 4k to rebirth again
    after i leave and rejoin its 2k again and easy to rebirth everytime pls help also saving wont work

  • @LushPop
    @LushPop 3 ปีที่แล้ว

    My MAN, currently my datastore saves around 20+ different values every 30 seconds and also when players leave. I thought that the method I was using was good, until I started to hit limits. I'm going to put this video to the test tomorrow and re-write my entire datastore.

    • @LushPop
      @LushPop 3 ปีที่แล้ว

      Alright so I re-wrote my entire datastore using this method and this is definitely the best method to go with. Havent had one yellow message pop up, I went a step ahead and saved different folders to a dictionary so that I only call SetAsync and GetAsync once. Thanks for this video!

    • @ImmortalSpelldagger
      @ImmortalSpelldagger 2 ปีที่แล้ว

      Me with 30 Values for stupid clicking game: interesting

  • @shawzac6937
    @shawzac6937 2 ปีที่แล้ว

    Idk if anyone can Help but i have Money and Reborths instead of his currentcy and i adjusted all To money and rebirths but still doesnt work

  • @ragusan2536
    @ragusan2536 3 ปีที่แล้ว

    Nice vid, just a simple question, why did you create functions like onPlayerExit instead of making the code of OnPlayerExit inside of the PlayerRemoving event?

    • @TechwithMikeYT
      @TechwithMikeYT  3 ปีที่แล้ว

      Just a preference. I tend to like to keep the events and functions separate, but I go back and forth between the two ways.

  • @exoticpineapple3
    @exoticpineapple3 2 ปีที่แล้ว

    Can someone help me out? In the output it says that UserId is not a valid member but it is.

  • @rxny_2315
    @rxny_2315 3 ปีที่แล้ว

    how do i make it to where the value can't be negative? I have a shop system with it and when you buy you can be negative money.

  • @shortestcomment841
    @shortestcomment841 3 ปีที่แล้ว

    for me it keep saying "could not save data" and idk what is the error

  • @hdr_8
    @hdr_8 2 ปีที่แล้ว

    my thing works and all but thats if i do f9 and give it to me but if i use the tool to give it to you it doesnt can you help me fix this please this game maters to me a lot

  • @iliketofish6966
    @iliketofish6966 2 ปีที่แล้ว

    can you help me with my game please all i need is a saving script for clicks and rebirths ive tried every script ive found and nothing works i dont want to work on the game any longer if stats dont save help me please.

  • @theflyingpenguin2241
    @theflyingpenguin2241 3 ปีที่แล้ว +1

    why do you put every value in a table first rather than repeatedly using :SetAsync?

    • @TechwithMikeYT
      @TechwithMikeYT  3 ปีที่แล้ว

      Seems like an easier option, especially if you have a lot of values.

    • @theflyingpenguin2241
      @theflyingpenguin2241 3 ปีที่แล้ว

      @@TechwithMikeYT regarding the datastore limit, does saving a table count as 1 or multiple uses of the datastore?

  • @griddy2188
    @griddy2188 2 ปีที่แล้ว

    this is the best tutorial + I will subscribe to you it helped out a lot

  • @bendogcs
    @bendogcs 3 ปีที่แล้ว

    how would i save multiple different folders of data? i have a leaderstats folder for things i want to display but alot of levels I dont want to be displayed on the leaderboard

    • @bendogcs
      @bendogcs 3 ปีที่แล้ว

      i have another folder called otherstats and one called combatstats

  • @rapidkatana643
    @rapidkatana643 ปีที่แล้ว

    i dont know how to thank you i was hopeless until i saw your video

  • @aquaz47
    @aquaz47 2 ปีที่แล้ว

    For some reason Every single script i try doesn't work, I have Api on and Http on too

  • @fauzanpawpaw454
    @fauzanpawpaw454 3 ปีที่แล้ว

    I really need your help, how do you make the data doesnt have a leaderboard? thank you

  • @alol8110
    @alol8110 3 ปีที่แล้ว

    i dont know why but no matter what i tried nothing works i followed this tutorial other tutorial freemodels devForums tried adjusting the script the settings everything and i dont know what im doing wrong

  • @noobking1707
    @noobking1707 3 ปีที่แล้ว

    How to make like tower defense that data save to another place?

  • @zodopi6
    @zodopi6 2 ปีที่แล้ว

    hello , i need a kind of tutorial so here is what i need help with thing is in my game i was trying to make a song playlist system and this is how i make it work there is a spot where the player puts the song id and it clones an int value in a folder i called "playlist" when i check it really does clone the intvalue and the song names are written on the intvalue name and the id is in the intvalue's value but once i leave the game and rejoin the intvalues that contains the song name and the int values aren't here anymore i would just ask a datastore that can save any data in a folder i do not really need help with the gui i can make the gui myself but i just need a bit of help with the datastore because whatever i try it does not save it so please if you ever make this video tag me in the video and if i follow evry single steps in your tutorial and it works you earn 2 follows so please lol do this pleaseeeeee

  • @jxkeLXIX
    @jxkeLXIX 3 ปีที่แล้ว +1

    I can do "instance.new("Folder", Player)" right?

    • @TechwithMikeYT
      @TechwithMikeYT  3 ปีที่แล้ว +1

      Yes, that would be fine as long as you use capital I for Instance.new()

    • @jxkeLXIX
      @jxkeLXIX 3 ปีที่แล้ว +1

      @@TechwithMikeYT Okay thanks.

  • @zaarrachman
    @zaarrachman 3 ปีที่แล้ว +1

    Hello, can you help me please? I am trying to make a minigame and now I just need to make the datastores. I'll leave the script below, It will be more helpful if you could help me with the script. Edit 1: I put this on script, not local script.
    Edit: After some changes, it finally worked. By changing this line:
    playerData:SetAsync(playerUserId, player.leaderstats.Wins.Value)
    the script was confused which data is going to be saved which is why the datastore failed to save, and to specify which data is going to be saved. You just need to specify playerUserId, player.leaderstats.(put the data name here).value

  • @SafuGame
    @SafuGame ปีที่แล้ว +1

    Greate Tutorial, but I'm need to change leaderstats to another folder, but its dosen't work

  • @hoanghanguyen1410
    @hoanghanguyen1410 2 ปีที่แล้ว

    Thanks. The create_table solution really hit me hard in the head.

  • @alykofi8799
    @alykofi8799 3 ปีที่แล้ว

    Is there a way to auto save data with custom avatar clothing?

  • @bluey-roblox
    @bluey-roblox 2 ปีที่แล้ว

    I'm having a problem where the data isn't being saved. It's going through the save and the load functions, but the data is always 0.

  • @gamerplays_off
    @gamerplays_off ปีที่แล้ว

    Amazing guide with amazing explanations. Keep it up :)

  • @ultimategamer5569
    @ultimategamer5569 4 ปีที่แล้ว +1

    Nice video i wanted to ask if you could make the game save tool

  • @tiobomba4172
    @tiobomba4172 3 ปีที่แล้ว

    everytime i run the code on the roblox it give me 'attempt to index nil with 'WaitForChild'', it´s because i´m testing on the roblox studio, if i run it on roblox site it should work?

  • @cyberghastsecondchannel1057
    @cyberghastsecondchannel1057 4 ปีที่แล้ว

    Help! 19:29:06.413 - Disconnect from 127.0.0.1|55337
    19:29:06.414 - Could not save data!

  • @HayderBopper
    @HayderBopper 2 ปีที่แล้ว

    This is the first script I found that saves can save both variables I need to save, but for some reason, it doesn't work the first time you run it on someone's account. I have no idea why that is, but it's kind of annoying if you are a new player and lose all your data to that.

  • @manuelrocuant8421
    @manuelrocuant8421 2 ปีที่แล้ว

    Comos eria si fuera un personaje y no un item?

  • @nikyt36
    @nikyt36 4 ปีที่แล้ว +1

    Great video thanks! Can I ask how you might display the stats within a PlayerGUI? Would a LocalScript within the StarterGUI be able to 'Read' the stats data? Thanks again! Super helpful content.

    • @toastedsocks1678
      @toastedsocks1678 4 ปีที่แล้ว +1

      I'm late but I can help, make sure you have a textlabel in a screengui and put a localscript inside the text label and say this: local Text = "Your text before the value"-- leave nil if you don't want one
      local ValueName1 = "" -- Your value name, add multiple if you need
      while true do
      script.Parent.Text = Text..game.Players.LocalPlayer.leaderstats.ValueName1.Value
      wait()
      end
      ---- and there you go -----

    • @nikyt36
      @nikyt36 4 ปีที่แล้ว

      Toasted Socks thanks, I’ve come along way since this question but really appreciate you taking the time to offer assistance 🤛

    • @toastedsocks1678
      @toastedsocks1678 4 ปีที่แล้ว

      @@nikyt36 If you ever need it, I can help with any project or things about scripting you need. Edit: btw my username is: minecraftpro078987 I have it set to followers can message me.

  • @thatghost281
    @thatghost281 4 ปีที่แล้ว

    I saw another tutorial where they had multiple values on seperate keys. and it didnt work. but this is a easy and genius idea and he made it easy to understand, mike, make a leaderstat that detects your subscribers, and add another subscriber :D

  • @gianforever6935
    @gianforever6935 4 ปีที่แล้ว

    I have a cuestion,how we make tis but in firts person,because y firts person I dont can buy objets
    tengo una pregunta como hago la tienda pero en primera persona osea que pueda comprar en primera persona (no se puede)

    • @TechwithMikeYT
      @TechwithMikeYT  4 ปีที่แล้ว

      What video are you asking about? This one doesn't have anything to do with first person or buying objects.

    • @gianforever6935
      @gianforever6935 4 ปีที่แล้ว

      @@TechwithMikeYT no se ingles :v pero,How do I make a store in the first person? I can't buy things unless I have a touch screen

    • @gianforever6935
      @gianforever6935 4 ปีที่แล้ว

      (the game mouse is not visible in first person and you cannot buy items)

  • @aaronrpm8558
    @aaronrpm8558 4 ปีที่แล้ว +6

    NEW SUB!

  • @nwhatchel
    @nwhatchel 2 ปีที่แล้ว

    Is there a way to save datastores without using leaderstats?

  • @IshPlayz
    @IshPlayz 4 ปีที่แล้ว +1

    Does it work with numbervalues?

  • @CommanderD1204
    @CommanderD1204 4 ปีที่แล้ว

    Can u make it where we bought a tool and then we left and then rejoin and the tool is still saved?

  • @brightenlahaie533
    @brightenlahaie533 3 ปีที่แล้ว +1

    thank you so much, everyones I tried it didn't work, but this did thanks so much for helping me!

  • @bertramc.t.2717
    @bertramc.t.2717 2 ปีที่แล้ว

    why does no data saving script work for me
    i need help

  • @mushnl4863
    @mushnl4863 3 ปีที่แล้ว

    This never worked for me i had api on and it still dosent work

  • @saucetv4746
    @saucetv4746 4 ปีที่แล้ว +2

    So clean tutorial

  • @menolito1
    @menolito1 3 ปีที่แล้ว

    If I wanted to make a game with say different 100 skills would you store them all like this?

    • @profesionalshitposter675
      @profesionalshitposter675 3 ปีที่แล้ว +1

      NOO that is not what He meant ok the last video he made is to SAVE ONE VALUE its will only save 1 value if you use that script that means all values will remain the same if you add them click on the link in desc And scroll down and go for the second script which allows you to save multiple values I almost did the same mistake and misunderstood him

  • @crixxbrixx
    @crixxbrixx 4 ปีที่แล้ว

    Holy crap, you explain it very well and have the script in the description. Dude, your the best. You get a sub and like.

    • @TechwithMikeYT
      @TechwithMikeYT  4 ปีที่แล้ว

      Thanks for the sub!

    • @crixxbrixx
      @crixxbrixx 4 ปีที่แล้ว

      I just wanna know- if i make it three leaderstats,, do i just need to add another leaderstat and then add the data stuff tothe script for that leader stat?

    • @CM_ChocolateMiracles
      @CM_ChocolateMiracles 3 ปีที่แล้ว

      @@crixxbrixx I wouldn't recommend using 3 leaderstats, i would recommend 2 at the max otherwise it the players UI gets crowded, and also you can use different names other then leaderstats so it doesn't appear on the player board

  • @jonah9046
    @jonah9046 3 ปีที่แล้ว

    Ran into a trouble which I had a quick fix for:
    If you use this script multiple times and for different data, make sure to change the datastore key so it's not just the player's user ID.

  • @nvidiakdgtx5686
    @nvidiakdgtx5686 4 ปีที่แล้ว

    The script stock(Meaning not modified or changed at all) does not work. I copy pasted the script from his websites that stores multiple values and got this error, " ServerScriptService: attempt to index number with 'Money' - Server "
    Really?!

  • @complexx
    @complexx 4 ปีที่แล้ว

    Hello, I have a question, I set a Level System, When I touch a part it gives me 25 experience and once i got 100, i leveling up, but I can't set the setting that if we touch the part and when timer ends All of the players respawn and it gives the person who touch the part 25 experience and once that person got 100 experience it levels up and it shows in leaderstats, Like tower of hell. How i able to set it? Please Answer it Mike!

  • @imaginsharky
    @imaginsharky 4 ปีที่แล้ว

    I have a question. When I add this to the script:
    while true do
    wait (15)
    points.Value=points.Value+10
    end
    It breaks the datastore for some reason. also, my leaderstats value is points, so it's not that.
    help please?

    • @TechwithMikeYT
      @TechwithMikeYT  4 ปีที่แล้ว

      th-cam.com/video/ZV9YXi31G1U/w-d-xo.html

  • @gabrielccbr
    @gabrielccbr ปีที่แล้ว +1

    Simply works

  • @harrisonhill8781
    @harrisonhill8781 3 ปีที่แล้ว

    How can i change these variables?

  • @tjnyland1
    @tjnyland1 2 ปีที่แล้ว

    does this work with Boolean values?

  • @muhammeddiab723
    @muhammeddiab723 3 ปีที่แล้ว

    your leaderstats datastore was absolutely excellent. i tried making a save data for my obby for 3 months and now it works thanks to your previous tutorial. now my problem is that when i add Coins to the list it doesnt save anymore. can anyone help?

  • @tiobomba4172
    @tiobomba4172 4 ปีที่แล้ว

    so, let´s say i don´t want to the variables to be shown in the leaderstats, can i do all the same with another folder name?

  • @tnc1332
    @tnc1332 3 ปีที่แล้ว +1

    8:08 just saving where i left off

  • @voidomega4211
    @voidomega4211 2 ปีที่แล้ว

    Does it have to be leaderstats?

  • @geekstreet100
    @geekstreet100 4 ปีที่แล้ว

    Works great, much appreciated, thanks Mike.

  • @Proxypp
    @Proxypp ปีที่แล้ว

    Do this with tool pls i spend 19h in try to make tool save sistem but nothing

  • @finalhour99
    @finalhour99 4 ปีที่แล้ว

    For some reason this is not working for me @Tech with Mike can you please help me?

  • @Jelleydev
    @Jelleydev 4 ปีที่แล้ว

    how do i do values without it showing on the top right i have a part system

    • @TechwithMikeYT
      @TechwithMikeYT  4 ปีที่แล้ว

      Name the folder something other than leaderstats

    • @Jelleydev
      @Jelleydev 4 ปีที่แล้ว

      @@TechwithMikeYT oh things for replying and i can make more then one folder just copy and paste and rename?

    • @TechwithMikeYT
      @TechwithMikeYT  4 ปีที่แล้ว

      Yes, and for the values you want inside each just set the values parent equal to the name of the folder

    • @Jelleydev
      @Jelleydev 4 ปีที่แล้ว

      @@TechwithMikeYT thx using this for parts didnt want them to show up on top right lmao sorry im not a very good scripter

  • @hackedbeast9890
    @hackedbeast9890 4 ปีที่แล้ว +1

    Cool! Keep it up.

  • @sharkisradiant6686
    @sharkisradiant6686 4 ปีที่แล้ว

    yes it works but how do you make 3 slots that do this and you can save and load

    • @TechwithMikeYT
      @TechwithMikeYT  4 ปีที่แล้ว

      th-cam.com/video/hWhr8ntzq5M/w-d-xo.html

  • @simplerpianisto6699
    @simplerpianisto6699 4 ปีที่แล้ว

    I tried scripting my own value saving script and it didn't work and so i found this video. I tried working with your system but it didn't work at first. I thought i was making just typo mistakes but i went to copy the whole script from the link and it still didn't work. There was a error showing up that i fixed without a problem and i even had API on. And nothing. It does not save or anything...

    • @TechwithMikeYT
      @TechwithMikeYT  4 ปีที่แล้ว

      Are you testing in studio or roblox website?

    • @simplerpianisto6699
      @simplerpianisto6699 4 ปีที่แล้ว

      @@TechwithMikeYT Both. But its alright i have learned more about it and figured it out by my self. I made my own data storage that works! Thanks for responding.

    • @danieldevlin8661
      @danieldevlin8661 4 ปีที่แล้ว

      @@simplerpianisto6699 it doesnt work for me and how did u make ur own ?

    • @simplerpianisto6699
      @simplerpianisto6699 4 ปีที่แล้ว

      @@danieldevlin8661 I made my own cause i am a programmer and i programmed a game on roblox already. Look up some roblox hub guides on how to do it.

    • @danieldevlin8661
      @danieldevlin8661 4 ปีที่แล้ว

      @@simplerpianisto6699 ok because ive been looking every where and trying everything and havent got it to work