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 comment
Could you please provide me that script, as I need it very soon. TYhanks!