(Like Kestrel, not a drop down)
1 | local PassId = script.Parent.Parent.Parent.Parent.Settings.PassId.Value |
2 |
3 | script.Parent.MouseButton 1 Click:connect( function (player) |
4 | Game:GetService( "MarketplaceService" ):PromptPurchase(player,PassId) |
5 | end ) |
6 |
7 |
8 | script.Parent.Text = "Purchase " .. script.Parent.Parent.Parent.Settings.PassName.Value |
Hi. first make a Text Button I recommend you go a test and make a DevProduct than insert this into a local script inside the text-button:
1 | MPS = game:GetService( "MarketplaceService" ) |
2 | id = 653936051 |
3 | local player = game.Players.LocalPlayer |
4 | script.Parent.MouseButton 1 Click:Connect( function () |
5 | MPS:PromptProductPurchase(player, id) |
6 | end ) |