I'm trying to make a gamepass gui, how would I do that?
✓ ANSWER ACCEPTED
Help with Gui?
1 answer
✓ Accepted answer
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
