Getting Loadstring

To get started with the Mega UI Library, paste this loadstring into your script executor:

local Library = loadstring(game:HttpGet("https://pastebin.com/raw/dw6Tu97C"))()

Creating UI Library Window

Now you can create the main window for your UI using one of the available themes:

local Window = Library.CreateLib("TITLE", "DarkTheme")

Themes Available:

You can replace "DarkTheme" with any of the options below:

LightTheme
DarkTheme
GrapeTheme
BloodTheme
Ocean
Midnight
Sentinel
Synapse

Creating UI Library Tab

After creating your window, you can add tabs to organize your UI elements:

local Tab = Window:NewTab("TabName")

Creating Section

Organize your elements inside the tab by creating sections:

local Section = Tab:NewSection("Section Name")

Creating Labels

Add informational text inside your section using labels:

Section:NewLabel("LabelText")

Creating Buttons

Add clickable buttons with descriptions and functions:

Section:NewButton("ButtonText", "ButtonInfo", function()
    print("Clicked")
end)

Creating Toggles

Add a toggle switch element:

Section:NewToggle("ToggleText", "ToggleInfo", function(state)
    if state then
        print("Toggle On")
    else
        print("Toggle Off")
    end
end)

Creating Sliders

Add a value slider element (e.g., controlling WalkSpeed):

Section:NewSlider("SliderText", "SliderInfo", 500, 0, function(s) -- 500 (MaxValue) | 0 (MinValue)
    game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = s
end)

Creating Textboxes

Add a text input field:

Section:NewTextBox("TextboxText", "TextboxInfo", function(txt)
	print(txt)
end)

Creating Keybinds

Bind actions to specific keyboard keys:

Section:NewKeybind("KeybindText", "KeybindInfo", Enum.KeyCode.F, function()
	print("You just clicked the bind")
end)

Toggling UI with Keybinds

Bind a key to toggle the visibility of your UI library:

Section:NewKeybind("KeybindText", "KeybindInfo", Enum.KeyCode.F, function()
	Library:ToggleUI()
end)

Creating Dropdowns

Add a dropdown menu with multiple selectable options:

Section:NewDropdown("DropdownText", "DropdownInf", {"Option 1", "Option 2", "Option 3"}, function(currentOption)
    print(currentOption)
end)

Creating Color Pickers

Add a color picker widget (the second argument is the default color):

Section:NewColorPicker("Color Text", "Color Info", Color3.fromRGB(0,0,0), function(color)
    print(color)
end)