You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I have a lot of values per each player and they all change a lot (its an inventory system) and I want to the values to be changed on server.
What is the issue? Include screenshots / videos if possible!
I was wondering if It would be so much faster to just script each value to automatically update the server if the client changes it but I’m worried that would be exploitable. It would save a lot of time because I wouldnt have to change the value via a remote event everytime I need to change a value
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
-- I would put this in under every value to automatically update the server with the client value
local val = script.Parent
local REM = game.Workspace.RemoteEvent
val.Changed:Connect(function(NewValue)
REM:FireServer(val, NewValue)
)
-- Then on script i would retrieve the remote event on server and change the value there
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
I don’t really see a reason to update the values from client to the server. As far as I am concerned, the inventory should be manipulated only from the server (adding items, removing items, etc.) and then the change should be registered on the client (update UI or do some action).
Could you please provide more info as why you need to update the values?
well if im on a local script I have to call a remote event to change the value on the server. So rather than calling remote events everytime i a value in the inventory is changed, i was thinking i could just automatically replicate the value change on the client to the server. (I feel like im just reiterating what i said before but i dont really know how to explain it). I guess an example of this would be when a button is pressed to take away a players cash or resource. Instead of calling a remote event to do so i could just do it with the method i said before.
Well yeah that could be very dangerous if I understand what you’re trying to say right. Exploiters could just change the value on client → changing the value on server. You could however protect from it if you know under what circumstances it can change, that way the server will know if it can or cannot be changed.