Problem with changing value

(i made the same post so people will see it)
i have a problem with changing a value with my script, the script doesn’t seem to be changing the value everytime i equip the item ( pickaxe ), here’s the script :

local pickaxe = script.Parent
local pickvalue = game:GetService("ReplicatedStorage").Tool.CurrentPickaxe
	pickvalue.Value = 1

the script doesn’t seem to change the pick value, in the output the pickvalue doesn’t show up for some reason
the value is used in another script if it might help

local replicatedstorage = game:GetService("ReplicatedStorage")
local mining = replicatedstorage.Mining
local health = script.Parent
local pickstrength = replicatedstorage.Tool.CurrentPickaxe.Value
local dc = replicatedstorage.DisableControl
local dc2 = replicatedstorage.dc2
local strength = game:GetService("ReplicatedStorage").Tool.CurrentPickaxe.Value
local currentpickaxe = game:GetService("ReplicatedStorage").Tool.CurrentPickaxe

	strength = currentpickaxe.Value
	print("strength changed to "..strength)

can anyone help me?

Could you please provide more information? I don’t see any errors in your code but from what I see you are setting the pick value to 1 when you equip it and when the value changes you set it to the current value?