Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Roblox Changed Gamepass ID and Ingame Gamepass service? Roblox Gamepass Only Doors dont even work?

I uploaded a new gamepass and went to link it to a tool giver script (which worked fine), I noticed the gamepass ID is much shorter compared to older ones and now for some reason the Gamepass Script dosent recognise that ID.

My Gamepass Scripts now for some reason no longer accept any Gamepass IDs that I have previously entered making all my Gamepass Tools irrelevant, The Roblox made gamepass door dosent even work?

Anyone else having this problem? Cheers.

1 answer

✓ Accepted answer

it did change however, You can still fix it, since roblox added :UserOwnsGamePassAsync() as a YieldFunction for the MarketplaceService which is used like this

local GamePassId = 72385
local MarketplaceService = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(player)

if MarketplaceService:UserOwnsGamePassAsync(player.UserId,GamePassId) then
print('player owns pass')
end
end)

2 comments

0

Thats great cheers, I will have a look tonight, and if it works ill certainly accept the answer, cheers.

0

Spot, this worked great after some fiddling

This discussion is preserved as it was. New answers, comments, and votes are closed.