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

Help with Gui?

Asked by 10 years ago

I'm trying to make a gamepass gui, how would I do that?

1 answer

Log in to vote
0
Answered by 10 years ago

To do this you would first need to get the MarketPlaceService, and use the ROBLOX method :PromptPurchase().

An example would be if you put this code into a LocalScript inside the TextButton:

Player = game.Players.LocalPlayer

TextButton = script.Parent

MarketPlace = game:GetService("MarketplaceService")
GamepassId = 000000

TextButton.MouseButton1Click:connect(function()
    MarketPlace:PromptPurchase(Player, GamepassId)
end)
Ad

Answer this question