So basically I’m a new/beginner developer learning about the api and I cant wrap my head around why the purchase prompt is coming up
local Market = game:GetService(“MarketplaceService”)
local TextButton = script.Parent.TextButton
local PassId = 719954849
local plr = game.Players.LocalPlayer
TextButton.MouseButton1Click:Connect(function()
Market:PromptPurchase(PassId,plr)
end)