Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago

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?

0
Int Values and such can't be exploited as easily as you think. User#11440 120 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

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.

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. MrKrystianoPL 15 — 7y
Ad

Answer this question