Load.BuyPack.MouseButton1Click:connect(function() game:GetService("MarketplaceService"):PromptPurchase(player,161883818) end)
This is supposed to make it so a player clicks the button called BuyPack in the frame Load, and prompts a purchase to buy a model. But it's not working. Please help. PS: THIS IS IN A SURFACE GUI, NOT A REGULAR GUI.
You got the event Correct... Maybe. But you forgot to declare player
script.Parent.MouseButton1click:connect(function(player) --You forgot the "player" in the brackets... game:GetService("MarketplaceService"):PromptPurchase(player,id) end)
Make sure this is in a normal script... You're Welcome :D