Exploiters accessing module scripts

I’m working on an inventory system, and I have a module script that saves what item is currently being dragged around so the other slots know what to place inside of it. This module is inside of the inventory GUI. Could an exploiter access this module and change what item is being stored?

1 Like

An exploiter can manipulate anything related to the client. They cannot change anything controlled by the client. Your server should be tracking the same information as the client when saving items that impact the game globally.

1 Like

The player’s inventory data is all stored on the server. Could I possibly validate where this item is coming from on the server to prevent exploits? (Saving the slot it came from, and checking the information in that slot when attempting to place that item somewhere else before transferring the data of the old slot to the new one)

1 Like

You can validate the information on the server to prevent someone from abusing your inventory system. The built in roblox inventory system is also pretty efficient at doing this.

Make sure all important code is run on the server. The client code should only be used to help the client communicate with the server (and vice versa), assist the user, and create a local environment.

Currently most of what I’m doing is one the client (important chunks are on the server though) I have the UI updates so everything looks nice visually, and storing the information in the module. The server-side actions happening are updating the dictionary with the player’s inventory information and validating items that are trying to be affected.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.