Hello guys im trying to learn better practice for my code and I was wondering what would happen in this scenario.
Say you have a gui script on the client to buy an item. This fires a remote function to a server script to check if you can afford it.
From what i understand that check on the server script would stop an exploiter from getting the item for free.
However if the server script then called an addItem function in a module script without checking again in the module script if the player can afford it could an exploiter just fire the module script function instead?
I only have limited understanding but would that just change the clients version of the module script and not replicate to the server?
I also have another question. The server event takes the player as an argument so could an exploiter change the player to someone else on the server and make the script edit their inventory instead?