(Like Kestrel, not a drop down)
local PassId = script.Parent.Parent.Parent.Parent.Settings.PassId.Value script.Parent.MouseButton1Click:connect(function(player) Game:GetService("MarketplaceService"):PromptPurchase(player,PassId) end) 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:
MPS = game:GetService("MarketplaceService") id = 653936051 local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:Connect(function() MPS:PromptProductPurchase(player, id) end)