Ok so i tried this very simple code but it doesn't work, when it prints the number of clicks, it saying "1 clicks" everytime i click the button here is the code :
local clicks = 0
script.Parent.MouseButton1Click:Connect(function()
clicks = clicks +1
print(clicks.." Clicks")
end)
Also there is no errors on output (I putted it on a localscript so that it's only counting how much the player clicked the button) I tried putting the number of clicks in a numbervalue then printing the numbervalue but same issue

2 comments
same problem
i fixed it, i just needed to put it in a different localscript