#How do I save only certain values of leaderstats?

34 messages · Page 1 of 1 (latest)

dim oriole
#

First of all, you can save most types of Data and any specific one with DataStore's,

What im more concerned about this script is you store the player data clientside, which is a bad thing to do

fierce cedar
#

whatt

#

this is server side

dim oriole
#

💀

#

You are parenting the values to player

#

which is the client

#

so the values are clientside

#

which leaves the room for many bad things such as:

Exploiters
Dupe glitches
Data corruption

and more

fierce cedar
#

but if I swich on server mode while testing those values changes also on the server

dim oriole
#

....

#

You are storing it clientside

fierce cedar
#

and all the tutorials I watched everyone did like that

dim oriole
#

yeah because tutorials suck

#

when developing actual games

fierce cedar
#

where should I learn then

#

documentation is crap

dim oriole
fierce cedar
#

sorry but I prefer it like that

#

I'll find a way to store them

dim oriole
#

wait what do you prefer it like

fierce cedar
#

like this "client side"

dim oriole
#

💀 I am telling you that will make your game unplayable, i can show you how to do it properly

fierce cedar
#

oh ok

dim oriole
#

So first of all, do you know how to work with ModuleScripts?

fierce cedar
#

not really

#

I know the basic stuffs like tables {} and require() in other scripts

dim oriole
#

its a bit late rn, i can help you tomorrow

#

In the meanwhile try learning module scripts

fierce cedar
#

ok

pine shuttle
#

i have a friend that has a datastore system that stores and updates data if new Values are being added

fierce cedar
#

I found a way editing this

#

instead of looping thru all leaderstats value I made it only save the wins one