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

Why does this give free items??

Asked by 10 years ago

I have a code that I want players to BUY the cash, instead, the Purchase Panel pops up, and gives the cash without even buying it... I need help here!

-- Yep, it's in a LocalScript, in case anyone asks
buybutton = script.Parent
msp = game:GetService("MarketplaceService")
id = 19251916
p = game.Players.LocalPlayer
buybutton.MouseButton1Click:connect(function ()
    msp:PromptPruductPurchase(p,id)
    p.leaderstats.Diamonds = p.leaderstats.Diamonds + 1000
end)

1 answer

Log in to vote
0
Answered by
LAC44 20
10 years ago

Its because its coded so when the gui pops up, the cash is given

buybutton = script.Parent
msp = game:GetService("MarketplaceService")
id = 19251916
p = game.Players.LocalPlaye
buybutton.MouseButton1Click:connect(function ()
    msp:PromptPruductPurchase(p,id)
end)

I think developer products are scripted in a seperate script than the one that prompts the purchase

0
Could you please provide me that script, as I need it very soon. TYhanks! fahmisack123 385 — 10y
Ad

Answer this question