#Best way to store player data?
96 messages · Page 1 of 1 (latest)
The best way for who?
You have to choose the best way for you. Whatever you feel is easier to implement.
I personally use attributes or tables.
I have some preferences here but I also wanna know if I'm missing out on anything that could be way better for me
I don't think there's anything else or any better.
Let's wait for someone else, though.
yeah, I wanna see more points of view
using profileservice, but not replica, replica is not needed, also update it to profilestore which is more updated, with that and making that when a profile gets created you create value for example of the leaderstats and get the value from his profile for me is personally the best way and the way i use in my projects
i said use like u need to, but no, as thermo said, use ur preference, also knowing the limits of each one and what you can do and cant do with each, but personally and about big projects talking profilestore for me is perfect
It feels like too much of a hassle to actively work with player data through profileservice outside of datastoring
is just a table
I really don't wanna be doing Profile.Data every time I wanna access it, and how do you per example call for the profiles from other scripts
or the client
module
why dont you like doing that? lol
and is just requiring one module
module is basically the life of games
modules are amazing
like what's the whole code i'd have to write in order to get a player's profile in another script
yes im aware
for example, this is how i get it
I feel it's repetitive and useless
local FirstProfileStore = require(SS.ProfileStores.FirstProfileStore)
require the store
and then for example on a remote event call
local FirstProfile = FirstProfileStore:GetProfile(Player);
there's no secret xd
scripting is repetitive
its not useless tho
oh i guess the module would just be an abstraction to the profilestore module calls
and what about the client
i dont really understand wdym but alr
when you gonna put the profile on the information of profilestore you can create the values you want
basically the module simplifies all the calls over to the profilestore in 1 function for you to get the module
yes i know the defaultprofile property when creating the store
how do i get a player's data on the client
if Player:IsDescendantOf(Players) then
Leaderstats:Create(Player, FirstProfile)
Profiles[Player] = FirstProfile
here i create all the needed for the player not only leaderstats, such as extra values as currencies, maybe extra things etc etc
idk when u would want to do that
-- Create the stats folder & all the stats in it.
function CreateStats(FirstProfile: Types.FirstProfile, FirstProfileData: Folder): ()
local StatsFolder = Instance.new( "Folder" );
StatsFolder.Name = "Stats";
StatsFolder.Parent = FirstProfileData;
for StatName, StatValue in FirstProfile.Data.Stats do
local NewStatValue = Instance.new("StringValue");
NewStatValue.Value = StatValue;
NewStatValue.Name = StatName;
NewStatValue.Parent = StatsFolder;
end;
end;
let's say i have a simple coin counter
Get info from the server
for example here i create the values of all the stats so the player can look up how much coins u got in a stringvalue.
how do i get my player's coins and update it when the coins change
bindablefunctions
bro read what im writing
doesnt this make profilestore useless then
** You are now Level 3! **
no
because some data i js dont create on values
and how do i detect the profile's data changing
well that defeats the whole purpose of profilestore doesnt it
nope
you're just doing a mixture of the values thing i talked about and profilestore
idk what do u think the purpose of profilestore is
i only really use it for it's datastore stuff
profilestore for me is the best option, only using values for me its not good
and i cant really tell you rn ALL the advantages you should test it out
in a baseplate for example
the advantage of profilestore being so useless i gotta go back to regular values because i cant pick up a change of values??
or find any info on the client reliantly
xd if that is your biggest problem u r fucked on scripting ngl
or have low experience on it
yk i think those 2 are pretty important
js keep on and keep testing more options, if you're not experienced on roblox studio js dont make a big project
cuz you're going to lead on learning in the process and want to change the whole game
you arent really explaining anything im asking about you're just personally attacking me
hes right tho
im explaining but you seem to dont understand and finding an "issue" where it isnt
you're just being really condecending and just assuming i have no experience
im trying to find solutions not being attacked by enormous egos
i cant say real things cuz you get attacked
if that's your biggest problem is a reality that right now is not your objective to make a full game
first learn
if u are new
im not new
or if u are not learn about this camp
Ye hes not tryna be mean
im just simply trying to explore better avenues for player data
if u go into big projects now after 1 month ur gonna see how bad ur script has
and im trying to explain you why profilestore and you see a issue because i create values?
I'm simply saying that profilestore is kind of useless if I can't get it on the client reliantly and have to depend on instance values to detect changes
and what do you want
maybe something like profilestore where I can work with values as if it was a table while also being able to pick up changes of values and be able to also get this data on the client
well that's my question and that's why i made this post
and if you want go ahead with replicacontroller its ok
creating values while using profilestore just defeats profilestore's purpose for me
but for me its really bad
it is bad, it's too much of a hassle for it to replicate right
and for the documentation i've read it's just bad
u r not going to understand til you test profilestore
so i suggest you creating a template game
where u use this
Today we look at a new library for easily saving player data inside of Roblox! The Profile Store library is created by the same developer of the Profile Service library, which we've used for saving our player data for so long.
Subscribe for more Roblox development tutorials!
Profile Store Dev Forum post:
https://devforum.roblox.com/t/profilesto...
i've used profilestore before