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"))()
Now you can create the main window for your UI using one of the available themes:
local Window = Library.CreateLib("TITLE", "DarkTheme")
You can replace "DarkTheme" with any of the options below:
LightTheme DarkTheme GrapeTheme BloodTheme Ocean Midnight Sentinel Synapse
After creating your window, you can add tabs to organize your UI elements:
local Tab = Window:NewTab("TabName")
Organize your elements inside the tab by creating sections:
local Section = Tab:NewSection("Section Name")
Add informational text inside your section using labels:
Section:NewLabel("LabelText")
Add clickable buttons with descriptions and functions:
Section:NewButton("ButtonText", "ButtonInfo", function()
print("Clicked")
end)
Add a toggle switch element:
Section:NewToggle("ToggleText", "ToggleInfo", function(state)
if state then
print("Toggle On")
else
print("Toggle Off")
end
end)
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)
Add a text input field:
Section:NewTextBox("TextboxText", "TextboxInfo", function(txt)
print(txt)
end)
Bind actions to specific keyboard keys:
Section:NewKeybind("KeybindText", "KeybindInfo", Enum.KeyCode.F, function()
print("You just clicked the bind")
end)
Bind a key to toggle the visibility of your UI library:
Section:NewKeybind("KeybindText", "KeybindInfo", Enum.KeyCode.F, function()
Library:ToggleUI()
end)
Add a dropdown menu with multiple selectable options:
Section:NewDropdown("DropdownText", "DropdownInf", {"Option 1", "Option 2", "Option 3"}, function(currentOption)
print(currentOption)
end)
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)