I don't know what I did wrong, it won't work, here is the script;
script.Parent.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer, 161160031)
end)
The Output said MarketplaceService:PromptPurchase() player should be of type Player, but is of type nil, but I don't know what it means by that, what have I done/what did I do wrong?

1 comment
Still isn't working for some reason, and isn't giving an error in the Output anymore, is the service Unavailable? :c