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.
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
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?
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
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)
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.
Thanks for making this video! You are the only one that clearly explains the code and everything you do in the video
Cant believe profileservice got an update hopefully this doesnt change too much
At least you finally posted!!
Gooood!
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.
what do you think about lapis datastore? 🤔id prefer it since lapis uses promise-based api
Yes better then ProfileStore and also ProfileService
Amazing
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
Yay!
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
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?
How would I use this in the simulator series?
can you add this to t clicker sim easy?
Hello, is there a way to display the players cash in a leaderstats and take money away from them thanks
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
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)
the spawn event is a custom thing i have just so the data is loaded fully its not anything crazy
@@reflzx did you figure it out?
@@oo4278 no do u have the same issue?
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.
Hello
Is the next series the tycoon series?
Yes
Yay!
Is it worth switching from profile service to this, if already using profile service?
hello