Have prompted a purchase in Studio onPlayerAdded:
-- server script
marketplace:PromptGamePassPurchase(player, 738462250)
-- another script
local hasPass
local succ, err = pcall(function()
hasPass = MarketplaceService:UserOwnsGamePassAsync(plrId.Value, 738462250)
end)
if not succ then
print(err)
else
print(hasPass)
end
then i print it in another game after i did the purchase but it prints false, does test purhcases even work in studio?