All Posts
August 22, 2026ModForge Team

How to Make a Roblox GUI: A Beginner's Guide to UI

Menus, shops, and HUDs all come from Roblox GUI. Here is how the UI system works and how to build your first interface.

Every menu, shop, health bar, and button in a Roblox game is built with GUI. Learning it opens up a huge part of game development. Here is how to make your first interface.

The building blocks

Roblox UI is a hierarchy:

  • ScreenGui is the container that holds your interface, placed in StarterGui.
  • Frame is a rectangular container you use to group and position elements.
  • TextLabel, TextButton, and ImageLabel are the actual visible elements: text, clickable buttons, and images.

1. Add a ScreenGui

Insert a ScreenGui into StarterGui. Everything a player sees goes inside it, and it is copied to each player when they join.

2. Position with UDim2

The trickiest part for beginners is positioning. Roblox uses UDim2, which combines scale (a fraction of the screen) and offset (pixels). Using scale keeps your UI looking right on different screen sizes, which is important because players use many devices.

3. Use anchor points

The AnchorPoint property decides which part of an element its position refers to. Setting it to the centre makes centering elements far easier. This one property saves a lot of frustration.

4. Make it interactive

To make a button do something, put a LocalScript inside it and connect to the button MouseButton1Click event. When clicked, run your code, like opening a shop frame or playing a sound.

5. Keep logic server-side

The UI and its immediate responses live on the client, but never trust the client for anything important. When a button triggers a purchase or a game action, the client should ask the server to do it, and the server validates it.

The short version

ScreenGui holds it, Frames organise it, UDim2 and AnchorPoint position it, and LocalScripts make it interactive, while the server stays in charge of real actions.

Skip ahead with ready-made UI

Polished UI takes time to design and build. Browse ready-made Roblox UI kits and HUD systems on ModForge to give your game a professional look faster.