How would you change a player’s item stats because of balance changes?

Lets say a player has a overpowered sword that has a numberValue with damage at 1000 needs to be nerfed in the next update.

In my head, possibly you can either

  1. Maybe use a function to go through all datastores and alter the data?
  2. Change the data when player logs back in

Can someone explain how this actually can be done?

1 Like

So you want to change a number value’s data store which represents the individual players damage?

It would represent the item’s damage, lets say the name is “Poisoned Sword”

Oh if its like a value you want to change that is for everything, I use this:

There may be free versions but basically you can access a specific datastore in studio using its key and then change a value inside the data store.

I do not own or are affiliated but I think in your case it will be quick and easy to do that then script in detection and what not.

If you want a free option I would suggest using math to compare its value and seeing if its too high or low using (> or <) and using :setasync to change its value.

some images on what it looks like:



image

Did my suggestion help? @spyguyman12

Sorry for late reply, I just wanted some resources for the future to use. Thank you for the resource!