Let’s say I that if I were to click a button depending on how many times I clicked it, a text label will say how much I clicked it but it is shown to the player. Like when I click a button three times, the text label will say 3. Kind of like how Cookie Clicker works. Here is the script that needs work:
local e = script.Parent.Parent.WrongClick.Text
local counter = 0
script.Parent.MouseButton1Click:Connect(function()
counter = counter +1
e = counter
end)
local e = script.Parent.Parent.WrongClick.Text
local counter = 0
script.Parent.MouseButton1Click:Connect(function()
counter += 1
e = tostring(counter)
end)