Because I am cloning a template for every perk, and want to get the price from both the server and the client (basically just store it in one place and use in 2).
If the client changes the Price to 0, will the server think it’s 0 (client change) or 500 (original)?
TL;DR: If the client changes the content of a ReplicatedStorage ModuleScript, will the server see it as it was written or as the client module (The edited module)?
No they can only see the code not change it. If you have this on the client i would heigly recommend just moving it on to the server.
If the client needs any data just make a remote function to get the data.
He said in his post that he wants to access the data from both client and server. If he doesn’t change these values, then this can be kept in replicated storage and remotefunctions won’t be needed for replicating the data in the module.
The client can’t make changes that would affect the server. If they make changes, those changes will only be visible to them.
Basically it’s not replicated. Except the changes made on the server, that is the only thing that gets replicated.
So the client can change functions and/or values of the module. That’s why I would use a remote function to ensure that the correct values get shown.
Unless LightningLion’s own code changes some values in the module and needs to get the original values, there’s no need for sending the original values again using a remote event or remotefunction. If an exploiter changes the code, you shouldn’t send the original values to them because it causes unnecessary network traffic and the exploiter can just decide not to use them. The exploiter could even decide not to request the values from the server.