How to Save Player Data using Profile Store! Roblox Development

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 29

  • @PeguShorts
    @PeguShorts 15 дней назад +1

    Thanks for making this video! You are the only one that clearly explains the code and everything you do in the video

  • @superstitic
    @superstitic 8 дней назад

    Cant believe profileservice got an update hopefully this doesnt change too much

  • @OwenTheSanta_YT
    @OwenTheSanta_YT 16 дней назад +1

    At least you finally posted!!

  • @Username8281
    @Username8281 16 дней назад +2

    Gooood!

  • @BrenFirely
    @BrenFirely 10 дней назад

    Amazing, I don't know how to add to my game at all. How to update my value. How to get data. Nothing.
    Someone recommend me to use Profile Store and this is what I get.

  • @clockus
    @clockus 15 дней назад +4

    what do you think about lapis datastore? 🤔id prefer it since lapis uses promise-based api

    • @lancekramer6384
      @lancekramer6384 15 дней назад +2

      Yes better then ProfileStore and also ProfileService

  • @Username8281
    @Username8281 16 дней назад +1

    Amazing

  • @Saint-Alx
    @Saint-Alx 10 дней назад

    do you think you could make a tutorial on getting the value of the stats in other scripts? like so you could display how much you have in a gui or use the stats to deal a certain amount of damage

  • @Morktin
    @Morktin 16 дней назад +1

    Yay!

  • @oo4278
    @oo4278 12 дней назад +1

    Should I create leaderstats inside of the module the onstart function? or should i make it in a seperate script?
    And it doesn't seem to save the data

  • @Fideun
    @Fideun 14 дней назад +1

    do you know how to switch it from profileservice to profilestore since it says it backwards compatible. the store name and values seems to be correct but it doesnt work is there anything else i need to change?

  • @Diamonds5683_Rule
    @Diamonds5683_Rule 14 дней назад +1

    How would I use this in the simulator series?

  • @MilanKaizer
    @MilanKaizer 14 дней назад +1

    can you add this to t clicker sim easy?

  • @Hi12234-c
    @Hi12234-c 9 дней назад

    Hello, is there a way to display the players cash in a leaderstats and take money away from them thanks

  • @reflzx
    @reflzx 15 дней назад +1

    how do u refer to it? my data has A LOT of stuff but if i try to do
    local data = playerdata.GetData(player)
    local race = data.CharRace
    it says attempt to index a nil with CharRace even though its one of the data things

    • @reflzx
      @reflzx 15 дней назад

      this is the full script i was using to test
      local players = game.Players
      local playerdata = require(game.ServerScriptService.CharInfo.PlayerData)
      game.ReplicatedStorage.SpawnEvent.OnServerEvent:Connect(function(player)
      local data = playerdata.GetData(player)
      local race = data.CharRace
      print(race)
      end)

    • @reflzx
      @reflzx 15 дней назад

      the spawn event is a custom thing i have just so the data is loaded fully its not anything crazy

    • @oo4278
      @oo4278 12 дней назад

      @@reflzx did you figure it out?

    • @reflzx
      @reflzx 12 дней назад

      @@oo4278 no do u have the same issue?

    • @daoyeet
      @daoyeet 11 дней назад

      It tells you is nil, because there’s no such data, so make sure that on the “PlayerData” module you created in the replicatedStorage has “RaceChar”.
      Now I don’t know what your data is, weather a number or a string or even another table, but
      If it’s a number it has to be:
      RaceChar = 0
      If it’s a String (text) it has to be: I don’t know in what circumstances you would need to store a string unless you making a game that saves text written by the player.
      RaceChar = “”
      If it’s a table, it should look:
      RaceChar = {}
      Honestly is always easier to ask ChatGPT for help and guidance, sometimes if you don’t understand what chat is saying, it’s weather your explanation of your question is confusing, or you are not getting what chat is saying. I suggest ask chat to teach from scratch in those scenarios.

  • @Susta1nzHD
    @Susta1nzHD 16 дней назад +1

    Hello

  • @OwenTheSanta_YT
    @OwenTheSanta_YT 16 дней назад

    Is the next series the tycoon series?

  • @Zae__
    @Zae__ 16 дней назад +1

    Is it worth switching from profile service to this, if already using profile service?

  • @ry_Ryir1
    @ry_Ryir1 15 дней назад

    hello