How to make a shop GUI in Roblox Studio

A game shop is three things: a button on the player's screen, a window of items, and a purchase the server checks. Here's how to get one in a couple of messages with Orimble, and how it works inside if you want to build or tweak it by hand.

Updated 13 November 2026

Sections

01What you'll get

  • A "Shop" button on the player's screen. Press it and a window of item cards opens.
  • Each card has a name, a picture and a price. Press the price to buy.
  • The server checks the price and the balance and hands out the item: a sword into the backpack, an attribute or an object in the player's folder.
  • The player sees a clear answer: "Purchased", "Not enough coins", "Already owned". If handing out fails — "Something went wrong, your coins are safe".

02The quick way: a shop from a chat in Orimble

  1. Open a project and tell the assistant: "Add a shop". It places a shop with two example items — a sword and a potion — and a "Shop" button on the player's screen.
  2. Change the items and prices in the next message: "Sword 50 coins, potion 10, add a shield for 80".
  3. The card in the chat shows the button and the window the way a player will see them. Don't like it — say what to change.
  4. Move it to Studio. With the Orimble Link plugin, enter the code from the site in its window and the shop arrives straight in your open place. Or download the project kit and install it with the short guide inside.

Live example

This is how a player sees the window

03How the shop works inside

If you build a shop by hand or want to understand the code Orimble gave you, remember one rule: the client asks, the server decides.

  • The server script (a Script in ServerScriptService) knows the prices, checks the balance, takes the coins and hands out the item.
  • The shop window (a LocalScript and a ScreenGui for the player) only shows the items and sends the item id to the server.
  • Shared objects in ReplicatedStorage — a RemoteEvent or RemoteFunction the window uses to talk to the server.

Why: anything that comes from the client can be faked. If the window sends "buy the sword for 0", the server takes the price from its own table, not from the request.

-- Script in ServerScriptService: only the server knows the prices
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local buy = ReplicatedStorage:WaitForChild("ShopBuy") -- RemoteFunction

local ITEMS = {
	sword = { price = 50, tool = "Sword" },
	potion = { price = 10, tool = "Potion" },
}

buy.OnServerInvoke = function(player, itemId)
	local item = ITEMS[itemId]
	if not item then return "unknown" end
	local coins = player:GetAttribute("Coins") or 0
	if coins < item.price then return "not_enough" end
	local template = game.ServerStorage:FindFirstChild(item.tool)
	if not template then return "failed" end
	player:SetAttribute("Coins", coins - item.price)
	template:Clone().Parent = player.Backpack
	return "bought"
end

04Selling for Robux

Coins are an in-game currency. To sell for Robux you need a product in Creator Hub:

  • Developer Product — bought many times: coins, potions, boosts.
  • Game Pass — bought once: VIP, double coins, a special skin.

How to connect it:

  1. In Creator Hub open your experience → Monetization → Developer Products (or Passes) and create a product. Copy its id.
  2. From the shop window call MarketplaceService:PromptProductPurchase(player, id) or PromptGamePassPurchase.
  3. Hand out the product in MarketplaceService.ProcessReceipt — only in a server Script, and only one per game. Return PurchaseGranted only after the item is handed out, otherwise NotProcessedYet and Roblox retries later.
  4. Don't hand out the item on PromptProductPurchaseFinished: that event doesn't prove the purchase was paid.
  5. Save purchases in a DataStore. Without saving, coins and items bought for Robux disappear when the player leaves.
  6. A paid random reward must show the odds and must not be sold where such rewards are restricted (PolicyService:GetPolicyInfoForPlayerAsync, field ArePaidRandomItemsRestricted).

In Orimble the assistant never makes up product ids. Until there is one, the top of the server script holds 0 and the button honestly says the sale isn't set up yet. Create the product in Creator Hub and send the id to the assistant, or paste it into the script yourself.

05Common mistakes

  • The price comes from the client — a cheater gets everything at no cost. Prices live on the server only.
  • The item is handed out in a LocalScript — only that player sees it, the server doesn't have it.
  • Two ProcessReceipt handlers in different scripts — only one works and purchases get lost.
  • The window doesn't fit on a phone — check it in Studio's phone view and size it with Scale, not pixels only.

06What's next