I tried to make a GUI receipt visible for a player after that player bought our developer product. A script will active after that player clicked the buy button:
script.Parent.MouseButton1Click:Connect(function() game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, ID) end)
After that player bought our developer product, another script in ServerScriptService will active:
game:GetService("MarketplaceService").ProcessReceipt = function(receiptInfo) if receiptInfo.ProductId == (ID) then game.StarterGui.ScreenGui.Frame.GUI4.Product1.Price.Receipt.Visible = true return Enum.ProductPurchaseDecision.PurchaseGranted end end
The receipt is invisible before that player buying our developer product, and it will be visible after that player buying our developer product until he clicked the close button in the receipt, the close button script is:
script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Visible = false end)
I don't know why the system didn't work and I don't know how to fix it. I really hope that I can fix that problem, thank you!

3 comments
Put the code into code boxxes.
JUST MAKE THE CODE CORRECT (jk)
Please put it into a code box