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

Not giving the money from the Developer Product?

Asked by
22To 70
9 years ago

Works, but when they buy they get no money?

01--
02 
03local devProductId = 33890734   --The Developer Product ID if your item, must be a Product of the game place it is in
04local player= script.Parent.Parent.Parent.Parent.Parent
05 
06--Well, as always, don't touch anything below if you have no idea what you are doing--
07 
08--Prompt Buy--
09script.Parent.MouseButton1Click:connect(function()
10    game:GetService("MarketplaceService"):PromptProductPurchase(player, devProductId)
11end)
12 
13--Transaction--
14local MarketplaceService = game:GetService("MarketplaceService")
15local ds = game:GetService("DataStoreService"):GetDataStore("PurchaseHistory")
View all 30 lines...
0
Try in pairs but tbh i cant see any error in the script. Try checking values and if the variables are correct. LifeInDevelopment 364 — 9y
0
idk why it isnt working like for real. 22To 70 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

I can't write all of the script but maybe this helps. http://wiki.roblox.com/index.php?title=Developer_product

Ad

Answer this question