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 loadstring and HttpGet
  • 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:

OptionTypeDefaultDescription
Titlestring"NexusUI"Window title
SubTitlestringnilSubtitle below title
Themestring/table"Dark"Theme name or custom theme table
MinimizeKeyEnum.KeyCodeRightControlKey to toggle UI
SizeUDim2500x350Window dimensions
LogoIdstringnilrbxassetid for logo
AcrylicbooleantrueGlass blur effect

Download Complete Examples

Want to see more examples? Download our comprehensive example file with 5000+ lines of documented code:

Download EXAMPLE_USAGE.lua

Next Steps

Explore Components

Learn about all available UI components