I am trying to make a numbervalue increase by one everytime a tool is activated, but for some reason the number that im increasing the numbervalue by increases by 1 everytime the tool is activated, instead of increasing the numbervalue. Ex:
while true do
local num = script.Parent.Value
num.Value = num.Value + 1
print (num)
wait(1)
end
Output: 1 2 4 7 11 ...and so on...
Here is my code, I am referring to the part where is says "elseif y.Name=v.name" https://gyazo.com/8a71086d0b984838610372510ab67191

7 comments
pls upvote if it works
It didnt work for me
still same result?
Actually, I used debounce but I didnt use it the way you said. I will still upvote you when my reputation is high enough. Thank you.
thanks
u can accept the answer tho
that gives me points