Src/Main.luau Luau
local Window = Instance.new("Window", {
Title = "Hello, LUI",
Size = UDim2.fromOffset(520, 320),
})
local Button = Instance.new("TextButton", {
Parent = Window,
Text = "Say hello",
Size = UDim2.fromOffset(180, 44),
Position = UDim2.fromOffset(24, 24),
})
Button.Activated:Connect(function()
Button.Text = "Hello, world!"
end)
Window.Visible = true
Build something you can click.
Start with a window and a button. Grow it into an app with screens, shared state and reusable components.
Windows SDK 0.1.0-preview.2 · Early and unsignedDownload & release notes ↗
Your first project
Install the tools, make a small app and learn how to check and run it.
A window, a button and your first event →Build a modular appBuild a project library with two screens, reusable controls and shared state.
From one file to a modular app →A small beginning
Section titled “A small beginning”LUI is an application framework for Luau. Describe your interface with Instances, properties and events. LUI handles layout and lifetime; a native host displays your app.
local Window = Instance.new("Window", { Title = "Hello, LUI", Size = UDim2.fromOffset(520, 320),})local Button = Instance.new("TextButton", { Parent = Window, Text = "Say hello", Size = UDim2.fromOffset(180, 44), Position = UDim2.fromOffset(24, 24),})Button.Activated:Connect(function() Button.Text = "Hello, world!"end)Window.Visible = trueYou can start with the Windows SDK and VS Code. The SDK includes the command-line tools, native host, checker, layout inspector and editor extension. You do not need to build LUI from source to follow the tutorials.
Find what you need
Section titled “Find what you need”- API reference: classes, services, types, constructors and helpers.
- Everyday workflow: check, run, inspect and come back later.
- Setup help: download checks and common problems.
- Platform support: tested configurations and current limits.
Help shape LUI
Section titled “Help shape LUI”Suggestions and bug reports are welcome in GitHub issues. LUI is changing quickly, so pull requests and code contributions are paused for now. See the contribution guide.