Number increasing on a Scoreboard

Hello, I am currently scripting something to function my scoreboard, its a score system as of right now.
image
These numbers are supposed to increase when you click these buttons:
image
Touchdown being an addition of 6 points, and the rest represent literally themselves.

But, I have ran into an error unfortunately. When I click “touchdown”, the score adds 6, but when I click “Score +1”, it resets the score, and changes it to 1. I decent with scripting, i know pretty much most of the basics, but not much advanced, so take it easy on me please.

Script for touchdown:

local button = script.Parent
local cookieDisplay = game.Workspace.ScoreBillBoard.SurfaceGui.Main.Away.Score
local clicks = 0

button.MouseButton1Down:Connect(function()
clicks = clicks + 6
cookieDisplay.Text = “” … clicks
end)

And the one for +1 is the same, just change the number to 1.

Pics Of the Explorer:
image
image

The problem is that you have a new clicks variable for each button meaning every single button has it’s own score. You could do something like this:

local button = script.Parent
local cookieDisplay = game.Workspace.ScoreBillBoard.SurfaceGui.Main.Away.Score

button.MouseButton1Down:Connect(function()
    cookieDisplay.Text = tostring(tonumber(cookieDisplay.Text) + 6)
end)

Thank you so much! It worked! Appreciate it

If you found a soloution, please mark the message as a soloution.