Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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

Log in to vote
0
Answered by
yoshi8080 445 Moderation Voter
6 years ago

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)
0
Thats great cheers, I will have a look tonight, and if it works ill certainly accept the answer, cheers. Moo_Blinder 18 — 6y
0
Spot, this worked great after some fiddling Moo_Blinder 18 — 6y
Ad

Answer this question