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

How do I check if someone owns an item in a shop?

Asked by
trecept 367 Moderation Voter
6 years ago

I have a GUI shop, and currently I'm making the equip remote event for when they click equip and unequip the starter item. I then started thinking exploiters could abuse this by firing the remote to equip any item in the shop even if they don't own it. How would I check if someone owns an item in a shop through a remote event? Or in general how to make the player own an item in a shop after buying it?

0
You can simply have a boolean value for every weapon and change it to true if the player buys it. Then you just check whether the player's boolean value is true or false.  blacksmiley0 19 — 6y
0
Would an exploiter not be able to change this value? I want it to be as secure as possible trecept 367 — 6y
0
Try putting the value inside of serverstorage then, exploiters can't access that. You'll have to use remote events then to access the value I think. blacksmiley0 19 — 6y
0
If the values are in server storage how would I make each value for a different player? trecept 367 — 6y

Answer this question