I am trying to make a script that counts how long someone is holding a key but when i check the value in my tool the intValue isnt changing at all;meaning i can't check when the player stopped holding the button:
replicatedstorage = game:GetService("ReplicatedStorage")
ChargeAnim = replicatedstorage:FindFirstChild("RicoClass").Charging
tool = script.Parent.Parent
cooldown = false
ChargeAnim.OnServerEvent:connect(function()
local charge = script:FindFirstChild("Charging")
charge.Value = charge.Value + 1
print(charge.Value)
end)
the script is counting down but its not changing the int value

2 comments
When using RemoteEvents, there should be a local script to fire it. Can you show us the script for it?
the local script its in is really long, but the remote event is working its just not changing the int value