Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make someone get more points instead of 1 after buying a upgrade?

Asked by 10 years ago

I need to know how to make the player get more points instead of 1 after the player buys a upgrade. I only know how to make his get 1 point per click (Note: I am making a cookie clicker game) The normal script:

script.Parent.MouseButton1Click:connect(function(mouse)
script.Parent.Parent.CookieValue.Value = script.Parent.Parent.CookieValue.Value + 1
end)

1 answer

Log in to vote
0
Answered by 10 years ago

script.Parent.MouseButton1Click:connect(function(mouse) script.Parent.Parent.CookieValue.Value = script.Parent.Parent.CookieValue.Value + (Whatever value you want here) end)

I'm sorry, but what grade are you in maths?

0
I don't mean that, like if someone bought a upgrade and it will boost your cps. Operation_Meme 890 — 10y
Ad

Answer this question