Hi guys!
I made this script a couple of months ago...it was working fine!
I come back to it now and it doesn't work at all :( I have tried all I can think of and it still is not working! This is really puzzling me! Any ideas?
Thanks!
local MarketplaceService = game:GetService("MarketplaceService")
local productId = 19750967
MarketplaceService.ProcessReceipt = function(receiptInfo)
for i, player in ipairs(game.Players:GetChildren()) do
if player.userId == receiptInfo.PlayerId then
if receiptInfo.ProductId == productId then
player.PlayerGui.ChoosingMap.Frame.Visible = true
game.Workspace.ChooseMap.Value = true
end
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end |