I am making a click to earn game, like make it rain. I have a textbox that starts out as "0 Pickles", and when they click the imagebutton, (a pickle) it increases the number in the textbox by one. Here is some code I tried below.
Pickles = script.Parent.Parent.Pickles
function onClick()
Pickles.Text = " +1 Pickles"
end
script.Parent.MouseButton1Click:connect(onClick)

5 comments
Thank you! (P.S you forgot the ) after end :)
I need something that makes the "Pickles Per Second" count go up one, but it will take away 50 pickles.
do you mean When it reaches 50 it will subtract 50?
Like an upgrade to the PpS?
Yes, an upgrade, I made a new question, its almost solved, but if you could help the answer that almost worked that would help!