Why isn't my IntValue changing in this OnServerEvent?
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:
01 | replicatedstorage = game:GetService( "ReplicatedStorage" ) |
02 | ChargeAnim = replicatedstorage:FindFirstChild( "RicoClass" ).Charging |
03 | tool = script.Parent.Parent |
06 | ChargeAnim.OnServerEvent:connect( function () |
07 | local charge = script:FindFirstChild( "Charging" ) |
08 | charge.Value = charge.Value + 1 |
the script is counting down but its not changing the int value