Roblox GuidebookKnowledge base
English ⌄

Development / ROBLOX

Roblox Game Pass not working: server ownership checks and missing privileges

Find the correct Pass ID, keep request failures separate from non-ownership, and trace a missing benefit across joining, purchase events and cached results.

Updated:

Start with the entitlement and the missing effect #

A player says the VIP pass is bought, but your door remains closed. There are at least three separate observations: which pass the account owns, what the server learned about ownership, and whether the promised privilege was applied. Start a short diagnostic record with the player's UserId, intended Pass ID, current place, server session and exact missing effect. Use a test project and existing authorized test accounts. Do not ask somebody to buy the same thing again simply to produce another log entry.

Write an observable requirement before changing scripts. For example, an existing owner should be allowed through the training-room entrance after joining; the door should still enforce access on the server. A badge, a green shop label and a successful purchase dialog are different observations. Record which one you actually saw. This guide concerns a creator investigating Pass ownership and privilege assignment. Our separate player purchase guide covers gathering evidence and contacting the creator when you cannot inspect the game's implementation.

Copy the Pass ID from the correct category #

In Creator Hub, open Creations, select the intended game and go to Monetization → Passes. Find the correct pass, open its thumbnail menu and use Copy Asset ID. Despite that menu label, this workflow gives the identifier for the pass you selected. The ownership method needs that Pass ID and the player's UserId. Do not substitute the pass icon's image ID, a Developer Product ID or a number copied from an unrelated page. Compare the selected pass with the offer description before editing configuration.

Keep one clearly named server configuration value for this privilege. Search the project for old copies: the shop may display one pass while the door checks another. A published place can also contain an older configuration than the Studio file you are inspecting. Record the actual deployed place and the ID used by its server. Our code deliberately starts with zero and stops until configured; zero is not a free test pass or a working example number. Replace it only with your intended pass identifier in a separate test copy.

Three separate checks: player, pass and applied privilegeOpen full-size image ↗
Three separate checks: player, pass and applied privilege

Read three outcomes from one server check #

The diagnostic Script below belongs in ServerScriptService. It checks players already present and future PlayerAdded arrivals, using UserOwnsGamePassAsync inside pcall. The messages distinguish owns, does not own and request failure. A failed request produces unknown; it does not establish non-ownership. The script logs observations only: it does not open a purchase prompt, grant a benefit, save progress or implement a complete retry service. Remove temporary diagnostics when you have the needed evidence instead of leaving noisy logs indefinitely.

For a confirmed owner, investigate privilege assignment next. For a successful false result, first compare account and Pass ID, then consider the documented cache situation below. For a request error, retain its classification and investigate the service or configuration problem without converting it into a new purchase instruction. A single log does not demonstrate a permanent state. We parsed this code and exercised its control flow with local stand-ins; actual Roblox ownership requests, server behavior and payment events were not executed for this article.

local PASS_ID = 0 -- Replace with your intended Pass ID before testing.
assert(type(PASS_ID) == "number" and PASS_ID > 0 and PASS_ID % 1 == 0,
    "Configure a positive integer Pass ID")

local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")

local function check(player)
    local ok, owns = pcall(function()
        return MarketplaceService:UserOwnsGamePassAsync(player.UserId, PASS_ID)
    end)
    if player.Parent ~= Players then
        return -- The player left while the request was pending.
    end
    if not ok then
        warn("PASS_CHECK_FAILED", player.UserId, PASS_ID)
        return -- Unknown is not the same as confirmed non-ownership.
    end
    if owns then
        print("PASS_OWNED", player.UserId, PASS_ID)
    else
        print("PASS_NOT_OWNED", player.UserId, PASS_ID)
    end
end

Players.PlayerAdded:Connect(check)
for _, player in ipairs(Players:GetPlayers()) do
    task.spawn(check, player)
end

Apply the benefit for existing owners on joining #

Roblox's pass documentation explicitly requires creators to assign the privilege and check existing ownership when a player joins. Connecting only a purchase-finished handler misses someone who purchased earlier or outside this running session. Trace the path from PlayerAdded to the ownership result and then to the exact game rule. If ownership is confirmed but the door never reads the server entitlement, repeating the ownership request cannot repair that missing connection. Name the function responsible for applying the benefit and identify which object it changes.

Design repeated application to produce the intended final state rather than stacking an extra reward each time. A permanent access flag should not add another consumable pack, and a movement benefit should not multiply speed on every check. This is an implementation requirement, not a ready-made entitlement system supplied by our diagnostic script. Check respawns, relevant places and the lifecycle of the object carrying the privilege. A character reset can replace an object while the player remains an owner; inspect which state your own game must rebuild.

Separate in-session events from external purchases #

Listen to PromptGamePassPurchaseFinished on the server when handling a pass prompt. The official reference says its server values reflect the final attempt outcome; local-script values are not suitable for validation or game logic. Match both the intended player context and Pass ID. A closed prompt can represent cancellation or failure, so an event alone is not a grant instruction. A false purchase result also does not mean you should erase an entitlement already confirmed through another valid path. Keep the purchase path distinct from Developer Product receipt processing.

UserOwnsGamePassAsync caches results, and the pass-prompt event updates that cache. A purchase made outside the experience while the player stays in the same session can take several minutes to propagate. The reference distinguishes entering a server after purchase from staying in the earlier session. Record that difference before adding loops or promising an exact waiting time. Do not store a temporary false result as a permanent ban on access. Frequent polling and clearing a DataStore do not create a reliable ownership refresh protocol.

Three ownership outcomes: a failure is not non-ownershipOpen full-size image ↗
Three ownership outcomes: a failure is not non-ownership

Test each boundary and record what remains unverified #

Use the table to review the two inputs, request outcome and actual benefit separately. Start with existing test ownership, a known non-owner and a simulated request failure. Verify that another pass's event cannot activate this pass's privilege. Check joining and respawning as different transitions. The local harness accompanying this article verifies argument forwarding, existing and newly joined players, three result branches and the zero-ID stop; it uses stand-ins and makes no Roblox requests. Those checks do not establish that an actual game's door or character controller grants access correctly.

Before changing a live game, run the intended integration in an isolated published test project with its own configured pass and appropriate accounts. Keep real purchase tests a separate, explicitly planned action with its own cost decision; we performed none. Preserve the old implementation so you can compare behavior. Close the investigation with the last confirmed boundary: input identity, ownership response, privilege assignment or use of the effect. That record gives a concrete next fix instead of another unexplained invitation to purchase.

CheckObservationNext boundary
Zero IDExample stopsConfigure the intended Pass ID
Existing ownerRequest returns trueApply privilege on joining
Account without PassSuccessful falseCheck intended context
Request failureOwnership unknownNo purchase instruction from error
Another pass eventID does not matchDo not grant this privilege
External purchaseEarlier cache possibleRecord session and timing
RespawnNew character objectCheck rebuilding the effect

Original sources

Roblox Creator Hub — Pass IDs and server privileges
Roblox API — Ownership caching and pass events