I currently have a script which prompts a purchase:
local plr = game.Players.LocalPlayer
local button = script.Parent
local MarketplaceService = game:GetService("MarketplaceService")
script.Parent.MouseButton1Click:Connect(function()
MarketplaceService:PromptGamePassPurchase(plr, 6783022)
end)
And I have this script for checking:
while true do
local mpService = game:getService("MarketplaceService")
mpService.ProcessReceipt = function(purchaseInfo)
local plr = game:getService("Players"):GetPlayerByUserId(purchaseInfo.PlayerId)
if purchaseInfo.ProductId == 6783022 then
print("Hey")
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
wait(1)
end
But none of these are working

2 comments
Are you trying to prompt a product or gamepass?
@MachoPiggies Yes I am