Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I thank players via GUI after they bought a developer product? NOT SOLVED

Okay, so I made a donation UI, but after they buy the product, how do I thank players via a GUI after they bought the developer product?

If you know how, please tell me. I am using this script to make the purchase prompt pop up on click.

local productId = 1231980771
local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function() 
	Game:GetService("MarketplaceService"):PromptProductPurchase(player, productId)
end)

2 answers

This should help: [I dont do dev products that much, so idk if it will work. Pls say if it does not]

local productID = 1231980771
local MarketplaceService = game:GetService("MarketplaceService")
local productInfo = MarketplaceService:GetProductInfo(productID, Enum.InfoType.Product)
local function processReceipt(receiptInfo)
 -- Enable gui here
end

MarketPlaceService.ProcessReceipt = procesReceipt

Here are some helpfull links I have found: link 1 link 2 link 3

2 comments

0

I don't really understand.

0

All it is, is when its purchased, it will do processreceipt function. Replace -- Enable gui here with the code to turn on the gui. Such as plr.PlayerGui.Thanks.TextLabel.Visible = True

This discussion is preserved as it was. New answers, comments, and votes are closed.