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

Gamepass door script not working anymore since Roblox changed the "storage system" for gamepasses?

Asked by 6 years ago

So... I have an old gamepass door script, but since Roblox changed the "storage system" for gamepasses, the script and the gamepass id are not working anymore. Can someone help me out with changing the script so it does work? I've read the wiki, but I'm kinda confused now...

01-----------------------------------------------------------------------------------------------
02 
03ItemID = "" -- The ID of the Gamepass/T-Shirt.
04OpenTime = 1 -- The time the door is open for.
05OpenTrans = 1 -- The transparency of the door when it is open.
06CloseTrans = 1 -- The transparency of the door when it is closed.
07BuyGUI = true -- Set to false to stop the BuyGUI appearing.
08KillOnTouch = true -- Set to false to stop players being killed when they touch it.
09 
10-----------------------------------------------------------------------------------------------
11 
12Door = script.Parent
13Serv = game:GetService("BadgeService")
14MServ = game:GetService("MarketplaceService")
15if not _G.Players then
View all 66 lines...
0
Rather than using a gamepass door that opens for a short amount of time, why not use CollisionGroupIDs? UgOsMiLy 1074 — 6y

1 answer

Log in to vote
0
Answered by
UgOsMiLy 1074 Moderation Voter
6 years ago

You would use the UserOwnsGamePassAsync in the MarketplaceService

Change the code on line 35 to

if MServ:UserOwnsGamePassAsync(player.userId,ItemID) or CheckPlayer(player) then

Ad

Answer this question