function Tix(Player)
	game:GetService("MarketplaceService"):PromptPurchase(Player, 286613096,"Tix")
end

I keep trying to get this to send a prompt purchase but the console says that it cant find the player. By the way, I do have the other bits but this is a long script and pasting it all would be a nuisance.

03:35:53.037 - MarketplaceService:PromptPurchase() player should be of type Player, but is of type nil

03:35:53.037 - Script 'Players.Player.PlayerGui.ScreenGui.Shop.Script', Line 177

03:35:53.038 - Stack End

This appears in the output window when I click the button itself. If anyone can help me, I would much appreciate it. Thanks

3 comments

1

Where did you call the function? Did you pass it a player argument?

0

The problem is with where you called the function, presumably Line 177

0

script.Parent.MreIn.Tix.MouseButton1Click:connect(Tix) This is the argument start.