This is really strange...
The current ID of the gamepass is 2925833. It was 957014577 before. I've put the new ID (2925833) inside a script (see below), but it doesn't work... But when I put the old one (957014577), it does! What's the problem??
Link to the vehicle gamepass https://www.roblox.com/game-pass/2925833/PRE-ORDER-Plaxton-President-OPEN-TOP
Here is the script, just in case (it's a regen gamepass script).
01 | local marketplaceservice = game:GetService( "MarketplaceService" ) |
02 | local debounce = false |
03 | local model = game.ServerStorage.opentop |
04 |
05 | function clicked(player) |
06 | if debounce then return end -- Stops the button being clicked whilst it is deactivated |
07 | debounce = true |
08 | if marketplaceservice:PlayerOwnsAsset(player, 957014577 ) then |
09 |
10 | newModel = model:Clone() |
11 | newModel.Parent = workspace |
12 | script.Parent.BrickColor = BrickColor.new( "Really black" ) -- changes part colour to red to show its inactive |
13 | newModel:makeJoints() -- Stops the model falling apart when it is spawned. |
14 | wait( 20 ) -- Time it takes for regen button to work again |
15 | script.Parent.BrickColor = BrickColor.new( "Eggplant" ) |
Any help would be appreciated.
Yeah, they did. Thankfully, my friend Vissequ made a script for this purpose:
01 | local MarketplaceService = game:GetService( "MarketplaceService" ) |
02 | local Players = game:GetService( "Players" ) |
03 |
04 | local gamePassID = 000000 -- Change this to your game pass ID |
05 |
06 | function onPlayerSpawned(player) |
07 |
08 | local hasPass = false |
09 |
10 | -- Check if the player already owns the game pass |
11 | local success, message = pcall ( function () |
12 | hasPass = MarketplaceService:UserOwnsGamePassAsync(player.userId, gamePassID) |
13 | print ( "Has Game Pass" ) |
14 | end ) |
15 |
I don't think so. If they did, the numbers would have significantly changed.