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

Gui only appears in studio when player buys a product?

Asked by
Ap_inity 112
6 years ago
Edited 6 years ago

This is what i've got so far:

local MarketplaceService = game:GetService("MarketplaceService")

MarketplaceService.PromptPurchaseFinished:connect(function(player, assetId, isPurchased)
    if isPurchased then
        wait(1)
        game.Players.LocalPlayer.PlayerGui.PurchaseFinished.Main.Visible = true
    end
end)

This is placed in a screen gui in starter gui. This is a regular script. If you've got an answer, please leave an answer. If you've got a tip, please leave a comment. Thanks!

0
Not sure what your asking, but you can test purchasing in test mode.. Kulh 125 — 6y
0
Yes, when i purchase an item in testing mode, it works fine but when i test it on a server, nothing happend Ap_inity 112 — 6y

Answer this question