Before getting started
This is the fully functional shop you’ll have at the end of the tutorial, with images / backgrounds fully customizable, and with DataStores & buying with Robux and in-game currency.
If you want to skip straight to having everything working, the great news is I already made a plugin to do that, so you can just download the free plugin here
If you want to build the entire Shop from scratch, keep reading…
Part 1: Setting up your Shop GUI
Step 1: Setting up the Base UI
First, we need to set up the container for our GUI. This is the foundation of any roblox shop gui workflow.
- Navigate to StarterGui in the Explorer.
- This folder replicates its contents to every player who joins the game. We want a 2D overlay, so it goes here.
- Click the + and add a ScreenGui . Name it ShopGUI.
- A ScreenGUI is needed to render 2D elements.
- Think of this as a transparent sheet of glass over the player’s camera
- Inside the ShopGUI, add a Frame. Name this ShopFrame.
- Frames are very important for grouping, as well as for positioning UI inside, which will come up later on
- Grab the ShopFrame, and position it in the center of the screen, and resize it to the size you want. After the steps, you should have something like this
Step 2: The Elements (Buttons & Text)
- Inside ShopGUI (but outside the ShopFrame), add a TextButton . Name it OpenShopButton. Place it somewhere easy to reach.
- The OpenShopButton being outside of ShopFrame is important, as the OpenShopButton will be used to show / hide the ShopFrame.
-
Inside ShopFrame, add a TextLabel . Name it TitleLabel. Set the Text to “SHOP” and place it at the top center of the frame.
-
Inside ShopFrame, add a TextButton . Name it CloseButton. Set the text to “X” and place it in the top-right corner.
-
Feel free to customize any of these UI elements through the Properties window. You should have something like this after these steps
Step 3: Example Scripting to Show/Hide the Shop
For the Open Button:
Insert a LocalScript inside OpenShopButton.
local openBtn = script.Parent
-- We use WaitForChild because sometimes the script loads before the UI is ready
local shopFrame = openBtn.Parent:WaitForChild("ShopFrame")
openBtn.MouseButton1Click:Connect(function()
shopFrame.Visible = true
end)
For the Close Button:
Insert a LocalScript inside CloseButton.
local closeBtn = script.Parent
local shopFrame = closeBtn.Parent -- The parent of the button IS the frame
closeBtn.MouseButton1Click:Connect(function()
shopFrame.Visible = false
end)
- Finally, select MainShopFrame in the properties, and uncheck the Visible box.
Now click run, and see your results
Congratulations, you now have a very simple (and ugly) Shop UI!! The ugliness right now is ok - later steps will polish the UI, add DataStore, buyable items, charging Robux, update the UI to work on all screen sizes, and more.


