How could I make a UI that appear when someone buy a donations?

How could I make a UI that appear when someone buy a donations with their name and the number that they donated?

1 Like

You could listen for the Events that MarketplaceService give you, but I’m assuming that you could handle this on a PromptProductPurchaseFinished Event if you’re wanting to detect a Developer Product being purchased by someone else :thinking:

local MPS = game:GetService("MarketplaceService")
local UI = game.ServerStorage:WaitForChild("DonationUI")

MPS.PromptProductPurchaseFinished:Connect(function(UserId, GamepassId, PurchaseCheck)
    local Player = game.Players:GetPlayerByUserId(UserId)
    if PurchaseCheck == true and Player then
        --Do your UI stuff here
    end
end)