Roblox GUI Maker logoRoblox GUI Maker
Unofficial third-party tool · Not affiliated with Roblox Corporation

Free Luau Code Export

Roblox GUI Script Generator: Free Luau Code Export

Describe a UI in plain text and get editable Luau you can paste into StarterGui. No manual UDim2 math, no hand-placing instances. The output is real code you own.

Example: generated Luau

Below is the kind of script the generator outputs for a simple main menu. Read it, tweak it, and paste it into StarterGui.

StarterGui/MainMenu.lua
lua
1-- Generated by Roblox GUI Maker
2local Players = game:GetService("Players")
3local player = Players.LocalPlayer
4local gui = player:WaitForChild("PlayerGui")
5
6local menu = Instance.new("Frame")
7menu.Name = "MainMenu"
8menu.Size = UDim2.new(0.4, 0, 0.6, 0)
9menu.Position = UDim2.new(0.5, 0, 0.5, 0)
10menu.AnchorPoint = Vector2.new(0.5, 0.5)
11menu.BackgroundColor3 = Color3.fromRGB(20, 20, 30)
12menu.Parent = gui
13
14local corner = Instance.new("UICorner")
15corner.CornerRadius = UDim.new(0, 12)
16corner.Parent = menu
17
18local playButton = Instance.new("TextButton")
19playButton.Name = "PlayButton"
20playButton.Size = UDim2.new(0.8, 0, 0.15, 0)
21playButton.Position = UDim2.new(0.1, 0, 0.2, 0)
22playButton.Text = "Play"
23playButton.Parent = menu
24
25playButton.MouseButton1Click:Connect(function()
26 print("Player pressed Play")
27end)

How it works

  1. 1

    Describe your UI

    Type what you want, e.g. 'a main menu with a Play button and Settings button.' The generator understands Roblox terms like Frame, TextButton, and UDim2.

  2. 2

    Refine on the canvas

    Drag elements, tweak Size and Position, and preview on mobile before exporting. The code updates as you edit.

  3. 3

    Export and paste

    Click Export to get a LocalScript. Paste it into StarterGui in Studio, press Play, and your GUI appears.

Frequently asked questions

Generate your first GUI script

Free to start. 50 AI credits per month, no credit card required.