#Safest/Efficient way to store data ?

1 messages · Page 1 of 1 (latest)

junior epoch
#

Hello, I'm trying to do a clicker on roblox, and I was wondering what would be the safest and yet most efficient way to store data such as the counter of how many cubes you have after clicking it, I have concerns on security for client manipulators, and I want the most efficient way to do so, and also I had a concern that the way I'm doing may have some issues when regarding where to store this data at

1st pic: the cube with its click detector

2nd pic: server script that creates the necessary folders and Valueholders to store information inside the player on the Players tab

all the data is manipulated with the server and its stored in the Players > player(name) > Currency folder

and I have a GUI for the client to show that information to the client player.

#

also im using bindable functions to do so

versed quarry
#

Personally I would store players' data in ReplicatedStorage or ServerStorage (if you want to be able to read the data directly from the client, use ReplicatedStorage) in a folder called "Data" or something (ReplicatedStorage > Data > {{player's name}})

Then, instead of using Values to store primitive values, I would use Attributes (they are much faster than Values to access and update), so to set the cubes of a player: ReplicatedStorage.Data.{{player's name}}:SetAttribute("Cubes", {{new cubes value}})

(Attributes are also just as safe as Values)

fluid inlet
versed quarry
junior epoch
#

the uname method i was using is flawed since it only saves the latest playeradded name onto the function, its not something separete that happens with client to client, so when tested on multiplayer all the cubes go into only one player instead of going to the individual that cliccked the cube

versed quarry
junior epoch
#

oh really ?, is that only on a local script or does it also work on server scripts ?

versed quarry
#

it works in both

ancient mangoBOT
#

studio** You are now Level 2! **studio

old sentinel
#

automatically replicate between server client

junior epoch
#

Thank you so much yall, the saving the date on a replicated storage is actually pretty useful