local function PassPurchased(player, id, purchased)
if not purchased then return end -- Didn't purchase
if id == PurchaseData.Passes['VIP'] or id == PurchaseData.Passes['Starter Pack'] or id == PurchaseData.Passes['Angler'] then
print('Purchased')
print(MarketplaceService:UserOwnsGamePassAsync(player.UserId, id))
end
end
MarketplaceService.PromptGamePassPurchaseFinished:Connect(PassPurchased)
The Purchased prints, but the UserOwnsGamePassAsync returns false. I was under the impression that purchasing gamepasses in game would make this return true, why is it returning false?
Did you purchase it in studio? If so then thats because roblox studio purchases are only test purchases so you never actually bought the gamepass and so the script won’t recognize that you own it since you actually don’t. If you bought it outside of studio/own it outside of studio then thats another thing
@NinjoOnline,
Hey! I got the same problem right now. I’m creating a group game with some friends and I’m the scripter, so I have to take care of the GamePass as well. It’s been 2 hours that I have the same problem and I’m looking everywhere and I think I’ve figured it out:
Although I made the GamePass, Roblox didn’t give it to me (thanks Roblox, thanks). In a few videos where people show tutorials about it, as soon as they make the GamePass, they get it immediately. But it seems that this is not the case with a group game. To verify this, try doing this here:
Go to the hamburger on roblox.com » Inventory » GamePasses and check if the GamePass is there. If not: This is also the problem. You’ll probably have to buy your own GamePass (which I think sucks, you can also make it cheaper on 1 Robux or completely free to test it, but I think this is stupid despite all, and I’m the owner of the group too, hope Roblox will fix it in the future)
Hi man, this is a lifesaver comment, this issue is still not fixed!
I bought my own gamepass for 1 r$ then it works, I was debugging for hours before I have found your comment. Tx again!