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)

6 comments
You need to create the gamepass/developer product for it, and set the id on the code(of the button, not the upgrader one)
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.
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
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
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
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