I've ran into an issue with my developer product GUI. The developer console shows this:
15:42:32 -- MarketplaceService:PromptProductPurchase() player should be of type Player, but is of type nil
However, I went to the script and looked at line 8:
game:GetService("MarketplaceService"):PromptProductPurchase(Player, devProductId)
Is there a reason the dev console is showing this error?
The player is nil. You must be getting the Player wrong or you put too many .Parents or something.
As crazycittykat says, your Player
variable is nil. This can happen if:
Player = game.Players:FindFirstChild("bob")
when there are no players with that username