MarketPlace Services isn't working correctly

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)

You have your arguments swapped around. It should be Player then PassId
PromptPurchase Documentation

If this is for a gamepass, use PromptGamePassPurchase

1 Like

ty for your reply and i found it out shortly after but ty anyways

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.