Shop
How to Make a Roblox Game Pass Shop GUI
Unlike coin shops that deduct in-game currency, a Game Pass Shop GUI connects straight to Roblox's native Robux purchase prompt via MarketplaceService. A great pass store displays clear tier cards, disables or badges passes the player already owns, and awards perks reliably both immediately on purchase and whenever the player rejoins.
Open the Game Pass Shop template →1. Design a 3-card or scrollable Game Pass card layout
Structure each pass card cleanly using UIListLayout or fixed fractional Scale slots: pass icon ImageLabel (512x512 square with UIAspectRatioConstraint), bold perk title, short bullet description (e.g. "+100% Coins Forever"), and a prominent Robux CTA TextButton.
Reserve highlighted borders or gold/cyan UIGradients for your flagship VIP or 2x Multiplier pass so players immediately spot the highest-value upgrade.
2. Prompt Robux purchase safely from a LocalScript
Store your Game Pass IDs in a shared ReplicatedStorage ModuleScript so buttons and server perk scripts never drift out of sync. When a player clicks Buy, first confirm they do not already own the pass (to prevent wasted or confusing prompts), then call MarketplaceService:PromptGamePassPurchase(player, passId).
-- LocalScript inside GamePassShop ScreenGui
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
local localPlayer = Players.LocalPlayer
local PASS_IDS = {
VIP = 12345678,
DoubleCoins = 23456789,
}
local function attachPassButton(button: TextButton, passId: number)
local ok, owns = pcall(function()
return MarketplaceService:UserOwnsGamePassAsync(localPlayer.UserId, passId)
end)
if ok and owns then
button.Text = "OWNED"
button.Active = false
return
end
button.Activated:Connect(function()
MarketplaceService:PromptGamePassPurchase(localPlayer, passId)
end)
end3. Refresh the Owned state immediately via PromptGamePassPurchaseFinished
Listen to MarketplaceService.PromptGamePassPurchaseFinished on both client and server. In the LocalScript, check that player == localPlayer and wasPurchased == true, then update the card's button from price/Buy to OWNED right away without making the player rejoin.
-- Client visual sync after purchase finishes
MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, purchasedPassId, wasPurchased)
if player ~= localPlayer or not wasPurchased then return end
if purchasedPassId == PASS_IDS.VIP then
vipBuyButton.Text = "OWNED"
vipBuyButton.Active = false
end
end)4. Grant and persist Game Pass perks on the server
Inside ServerScriptService, check MarketplaceService:UserOwnsGamePassAsync(player.UserId, passId) wrapped in pcall inside Players.PlayerAdded (caching owned pass booleans in memory for the session), AND listen to MarketplaceService.PromptGamePassPurchaseFinished so players who buy mid-session receive their perks instantaneously.
-- Script in ServerScriptService
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
local VIP_PASS_ID = 12345678
local function grantVipPerk(player: Player)
player:SetAttribute("HasVIP", true)
-- Apply chat tag, speed boost, or coin multiplier server-side
end
Players.PlayerAdded:Connect(function(player)
local ok, owns = pcall(function()
return MarketplaceService:UserOwnsGamePassAsync(player.UserId, VIP_PASS_ID)
end)
if ok and owns then
grantVipPerk(player)
end
end)
MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, passId, wasPurchased)
if wasPurchased and passId == VIP_PASS_ID then
grantVipPerk(player)
end
end)Use this in your game
FAQ
How do I test Game Pass purchases for free inside Roblox Studio?
In Roblox Studio Playtest mode, MarketplaceService:PromptGamePassPurchase opens a simulated free test prompt (no real Robux spent) and fires PromptGamePassPurchaseFinished with wasPurchased = true so you can verify your Owned button and perk logic end-to-end.
Why does UserOwnsGamePassAsync sometimes fail if I call it every second?
UserOwnsGamePassAsync makes a web request to Roblox APIs and caches aggressively. Check once on PlayerAdded, wrap it in pcall, store a boolean Attribute like HasVIP on the Player, and update that Attribute when PromptGamePassPurchaseFinished fires.
Should Game Passes use PromptGamePassPurchase or ProcessReceipt?
Game Passes (one-time permanent perks) use PromptGamePassPurchase and PromptGamePassPurchaseFinished. Repeatable consumables like currency packs or spin tokens use Developer Products and ProcessReceipt.
Where can I create matching icons for my Game Pass Shop cards?
Use the free Roblox GUI Maker Gamepass Icon Maker at /gamepass-icon-maker to customize 512x512 circular-safe emblems, rims, and colors as PNG or SVG with matching Store and Shop GUI styling.
Related guides
Skip the boilerplate
Everything in this guide — the hierarchy, the layout helpers, the button wiring — is built into the free Roblox GUI maker. Drag, drop, tweak real Roblox properties, then export clean Luau you can paste straight into Studio.
