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

Developer Products Help?

Asked by 9 years ago

I guess this may be Requesting scripts, if so, feel free to delete/remove this post, Admins.

I was wondering if I could be given a Developer Product script that will work due to mine not working. I'd like the Developer Product script to work for ScreenGui. I have made one and no success nor errors minus HTTP. It was up for nearly 3 days or so and I haven't gotten help. If this is not deleted or against rules, can the script have comments explaining things? I believe their must be a Client-Sided and Server-Sided script?

Also help for using the script for Multiple Dev Products, not just one so I'd need to copy Server and Client script and change ProductId and so on to fit it for another.

1 answer

Log in to vote
0
Answered by
yumtaste 476 Moderation Voter
9 years ago
--in regular script, in TextButton, in a ScreenGui

local mps = game:GetService("MarketplaceService")
local player = script.Parent.Parent.Parent.Parent
local productID = 123456789 --put in the product id here

script.Parent.MouseButton1Click:connect(function()
mps:PromptProductPurchase(player, productID)

end)

This script doesn't record purchases. You'd need a script with ProcessReceipt.

Ad

Answer this question