So here is my code located in a local script under a text button
local MarketplaceService = game:GetService("MarketplaceService")
local playerID = game.Players.LocalPlayer.UserId
local gamePassID = 8028917
script.Parent.MouseButton1Click:Connect(function(player)
MarketplaceService:PromptGamePassPurchase(playerID,gamePassID)
end)
And it returns me this error
I have no idea what I am doing wrong, I followed the wiki documentation and I am still getting this