IntValues aren't updating in my melee weapon script

Hi everyone, I’m not the best scripter so sorry if this is kind of a dumb topic, but my IntValues aren’t updating in my script.

My script uses these values to work, they’re stored in the tool like this:
image

My script works just how I wanted to, but I wanted to take it further and add weapon upgrades which can boost your weapon’s capabilities. This then lead me to discover the main issue of the values not updating.

Demonstration of the issue in case I wasn’t clear enough, you can see me change the damage value but the damage does not update at all:
(sorry for bad quality)

I’ve tried things like updating the value when you activate the tool, and just constantly updating the value with a while true do loop, but nothing I did worked. If anyone knows what is wrong then please don’t hesitate to tell me.
Thank you for reading and considering to help!

changing it like that affects the client only. Use a script, developer console, or command bar and change it that way. (or go to the server view and not the client).

1 Like

That was the issue, thank you so much for telling me. Probably going to delete this topic since it is kind of useless