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

Did ROBLOX changed gamepass ID's?

Asked by
snewo12 72
6 years ago

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).

01local marketplaceservice = game:GetService("MarketplaceService")
02local debounce = false
03local model = game.ServerStorage.opentop
04 
05function 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")
View all 22 lines...

Any help would be appreciated.

2 answers

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Yeah, they did. Thankfully, my friend Vissequ made a script for this purpose:

01local MarketplaceService = game:GetService("MarketplaceService")
02local Players = game:GetService("Players")
03 
04local gamePassID = 000000  -- Change this to your game pass ID
05 
06function 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 
View all 34 lines...
0
I've figured it out already though but this line: "MarketplaceService:UserOwnsGamePassAsync(player.userId, gamePassID)" was the problem. I only did (userId, gamePassID). Hah, thank you! snewo12 72 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

I don't think so. If they did, the numbers would have significantly changed.

0
This happened to me too. Very bizarre. Pixelated_MC 33 — 6y
0
Well, I'm stucking to the old IDs... Rip new gamepasses for me. snewo12 72 — 6y

Answer this question