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

My x2 cash upgrader button doesn't work at the tycoon I am making. Can you please help?

Asked by 4 years ago

I have a x2 cash button which should add an upgrader that doubles the earned cash. But while I touch it, it says "This item is not currently for sale. Your account has not been charged" Can you please help me?

The script that I have for the Doubling upgrader:

script.Parent.Upgrade.Touched:connect(function(hit)
    if hit:FindFirstChild("Cash") then
        hit.Cash.Value = hit.Cash.Value * 2
        hit.Reflectance = hit.Reflectance + 0.1
    end
end)
0
You need to create the gamepass/developer product for it, and set the id on the code(of the button, not the upgrader one) Leamir 3138 — 4y
0
I have the button model which includes: StringValue "Dependency", IntValue "Gamepass" with the ID in it's "value" tab, humanoid and a String Value "Object" with the upgraders Name in it and a Part with a mesh. AlreadyTakenN00b 2 — 4y
0
you already own the gamepass, meaning that you cannot buy it again. try converting it into a developer product that allows you to buy it everytime Lightning_Game27 232 — 3y
0
you already own the gamepass, meaning that you cannot buy it again. try converting it into a developer product that allows you to buy it everytime Lightning_Game27 232 — 3y
View all comments (2 more)
0
you already own the gamepass, meaning that you cannot buy it again. try converting it into a developer product that allows you to buy it everytime Lightning_Game27 232 — 3y
0
you already own the gamepass, meaning that you cannot buy it again. try converting it into a developer product that allows you to buy it everytime Lightning_Game27 232 — 3y

Answer this question