I'm trying to make a gamepass gui, how would I do that?
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)