Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Better way to share variables for one player only instead of using Value instances?

Hello. I would want to make shared variables for one player not using, these Value instances, becuase they are easy to modify by exploiters. Instead I would like to make shared variables. I don't know if ' _G. ' Would work just for one player or whole place. An good example is that players have 3 items to choose and everyone has different items choosen and I would like the main script to acces them and give those items for each player. Is there a way of doing it just for one player Or I have to stick to those values?

1 comment

0

Int Values and such can't be exploited as easily as you think.

1 answer

The main problem with IntValues is where they are placed which may or may not give the client direct access to the value allowing them to be edited and without FE the local changes can replicated.

If the client does not have the client cannot hack

Where to put them?

Where the client cannot access them Or even better don't sent them to the client at all.

A good place might be putting them in the server storage or any place which is not replicated to the client but can still be accessed by scripts.

This will mean that that is the client wants the information it must ask the sever for it or be in a kind of read only state e.g. FE.

1 comment

0

Oh okey thanks for the help. But is there a way instead of creating isInFps value in a player making a script that changes it when needed and then reading them as It just seems not pretty to have a lot of those values.

This discussion is preserved as it was. New answers, comments, and votes are closed.