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

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

Asked by 2 years ago
Edited 2 years ago

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

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

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

0
I don't really understand. RunkerSecurity 6 — 2y
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 Jay123abc2 241 — 2y
Ad
Log in to vote
0
Answered by
SuperPuiu 497 Moderation Voter
2 years ago
Edited 2 years ago

https://developer.roblox.com/en-us/articles/Developer-Products-In-Game-Purchases This might help ya

0
u just sent a link to the same thing I liked. LOL Jay123abc2 241 — 2y
0
XD sorry SuperPuiu 497 — 2y
0
Ok I fixed SuperPuiu 497 — 2y

Answer this question