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

My donation GUI doesn't work It should bring up a purchase prompt, how would i fix it? [ANSWERED}

Asked by
Tnipo 10
4 years ago
Edited 4 years ago

This question has been solved by the original poster.

I tried scripting a simple little donation gui the script is here :

local id = "" -- Put your product id here.

script.Parent.TextButton.MouseButton1Click:connect(function()
    game.MarketplaceService:PromptProductPurchase(script.Parent.Parent.Parent, id)
end)

What i have is a frame with text buttons and its supposed to bring up the purchase thing when you click it but it doesn't work.

0
This is in a LocalScript right? killerbrenden 1537 — 4y
0
Yes Tnipo 10 — 4y
0
Instead of script.Parent.Parent.Parent, do game.Players.LocalPlayer, and put a product id without the "". killerbrenden 1537 — 4y
0
Thank you very much. <3 Tnipo 10 — 4y
0
No problem! killerbrenden 1537 — 4y

Answer this question