Getting Started
Learn how to install and use NexusUI in your Roblox scripts.
Prerequisites
Before you begin, make sure you have:
- A Roblox executor that supports
loadstringandHttpGet - Basic knowledge of Lua programming
- Understanding of Roblox's environment
Installation
NexusUI is loaded via loadstring. Simply copy the following code to get started:
Loadstring
local NexusUI = loadstring(game:HttpGet("https://nexusdevs.fun/nexus/nexuslib.lua"))()Pro tip: Store the library URL in a variable if you plan to update it frequently.
Basic Usage
Here's a complete minimal example to create a working UI:
Complete Example
-- Load NexusUI
local NexusUI = loadstring(game:HttpGet("https://nexusdevs.fun/nexus/nexuslib.lua"))()
-- Create the main window
local Window = NexusUI:CreateWindow({
Title = "My Script Hub",
SubTitle = "Version 1.0",
Theme = "Dark",
MinimizeKey = Enum.KeyCode.RightControl,
Size = UDim2.new(0, 500, 0, 350)
})
-- Add a tab
local MainTab = Window:AddTab({
Title = "Main",
Icon = "home"
})
-- Add a section (optional)
local Section = MainTab:AddSection("Features")
-- Add some elements
Section:AddToggle({
Title = "Enable Feature",
Default = false,
Callback = function(Value)
print("Feature: " .. tostring(Value))
end
})
Section:AddButton({
Title = "Execute",
Callback = function()
print("Button clicked!")
end
})
-- Show a welcome notification
NexusUI:Notify({
Title = "Script Loaded!",
Content = "Welcome to My Script Hub",
Duration = 5
})Window Options
The CreateWindow function accepts the following options:
| Option | Type | Default | Description |
|---|---|---|---|
| Title | string | "NexusUI" | Window title |
| SubTitle | string | nil | Subtitle below title |
| Theme | string/table | "Dark" | Theme name or custom theme table |
| MinimizeKey | Enum.KeyCode | RightControl | Key to toggle UI |
| Size | UDim2 | 500x350 | Window dimensions |
| LogoId | string | nil | rbxassetid for logo |
| Acrylic | boolean | true | Glass blur effect |
Download Complete Examples
Want to see more examples? Download our comprehensive example file with 5000+ lines of documented code:
Download EXAMPLE_USAGE.luaNext Steps
Explore Components
Learn about all available UI components