Value not being updated on server

That seems weird, I would think that it would update on serverside and not on client side. Anyways, to fix this you could use a remote event to update the serverside value. Or, if you are new to developing and want the process of making the game to be easier, you could enable “FilteringEnabled”, which is a value of the workspace(check workspace propertys to see it). What it does is when it is not enabled, it makes changes made to the client appear on the server side. The only problem with this is that it makes the game easier to exploit.

The changes done on the client won’t update on the server. What you will need is a remote event to tell the server your updating the value.

You can read about remote events here;

Be sure to validate the remote event, add the necessary security to prevent exploiters from abusing it.

But i used a remoteevent Another remote?

Well yeah, I suppose what you could do is fire over the amount in that remote event (just have security on it). Just fire over the amount in those parameters, and try to authenticate it’s the valid user sending them to prevent exploiters.