notes:
- 3 buttons, all have a purpose of increasing the counter by 1 with every press
- if i press button1 the counter increases, but if i press button2 or 3 it goes back down to zero or it stays at 1
all the buttons have the same script
aaa = script.Parent.Parent.BrickCounter
Clicks = 0
script.Parent.Parent.BrickCounter.SurfaceGui.TextLabel.Text = Clicks
function onClicked()
Clicks = Clicks+1
aaa.SurfaceGui.TextLabel.Text = Clicks
end
script.Parent.ClickDetector.MouseClick:Connect(onClicked)
thanks in advance

3 comments
the counter doesn't display anything at all now
Can you please show me the output error (if there's any)?
nvm i just forgot to name the value LMAO thanks for the answer my dude