How to Create a Roblox Gamepass: A Complete Step-by-Step Guide
A Roblox Gamepass is a one-time purchasable item that grants players special perks, abilities, or access within a specific game on the Roblox platform. For developers, gamepasses are one of the primary ways to monetize a game — players pay Robux (Roblox's virtual currency) in exchange for whatever benefit the gamepass offers. Setting one up involves two distinct layers: creating the gamepass through the Roblox website and then scripting its functionality inside Roblox Studio.
What Is a Roblox Gamepass, Exactly?
Before creating one, it helps to understand what a gamepass actually does — and doesn't do — on its own.
A gamepass is essentially a product listing attached to your game. When a player buys it, Roblox records that purchase to their account. The gamepass itself doesn't automatically give the player anything; your game's code has to check whether a player owns it and then respond accordingly. This distinction matters because developers sometimes assume the gamepass does the work automatically — it doesn't. The perk delivery always requires scripting.
Common gamepass uses include:
- Unlocking extra speed, jump height, or strength
- Granting access to a VIP area or restricted game zone
- Providing exclusive tools, weapons, or cosmetic items
- Removing ads or enabling a premium game mode
Step 1: Publish Your Game First
You cannot create a gamepass for a game that hasn't been published to Roblox. If your experience is still private or unpublished, open Roblox Studio, go to File → Publish to Roblox, and follow the prompts to make it live. It doesn't need to be publicly playable — it just needs to exist as a published experience on the platform.
Step 2: Create the Gamepass on the Roblox Website
🎮 This part happens entirely in your browser, not in Studio.
- Go to roblox.com and log into your account.
- Navigate to the Create section from the top navigation bar.
- Click on Experiences and find the game you want to add a gamepass to.
- Click the three-dot menu (⋯) next to your experience, then select Create Game Pass.
- You'll be prompted to upload an image for the gamepass — this is what players see in the store. Roblox recommends a 150×150 pixel image. It needs to pass Roblox's moderation before it goes live.
- Give your gamepass a name and a clear description explaining what the player receives.
- Click Create Game Pass to save it.
Once created, find your new gamepass in the list, click the gear/settings icon, and select Configure to set its price in Robux. Toggle it to on sale when you're ready for players to purchase it.
At this stage, the gamepass exists as a product — but it does nothing in-game yet.
Step 3: Implement the Gamepass in Roblox Studio
This is where the actual functionality lives. You'll need basic familiarity with Lua scripting and the Roblox Studio environment.
Finding Your Gamepass ID
Every gamepass has a unique asset ID. You'll find it in the URL when you're on the gamepass configuration page — it looks like roblox.com/game-pass/XXXXXXXXX/Your-Pass-Name. That number is your Gamepass ID and goes directly into your script.
Writing the Script
Gamepass checks are handled through a ServerScript placed in ServerScriptService. The core service you'll use is MarketplaceService, which handles all in-game purchases and ownership checks.
A basic structure looks like this: