Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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?

1 comment

0

I don't mean that, like if someone bought a upgrade and it will boost your cps.

This discussion is preserved as it was. New answers, comments, and votes are closed.