Getting Loadstring
local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Mapple7777/UI-Librarys/main/UI-1/UI.lua"))()
Creating Window
local Window = Library:Create("Hub Name","Game Name")
Creating Tabs
Tab 1
local Tab1 = Window:Tab("Tab 1",true)
Tab 2
local Tab2 = Window:Tab("Tab 2",false)
Adding Elements to Tab 1
Label
Tab1:Button("Button",function()
print("pressed btn")
end)
Textbox
Tab1:Textbox("Textbox","Enter Text",function(txt)
print(txt)
end)
Keybind
Tab1:Keybind("Keybind",Enum.KeyCode.F,function()
print("Pressed key")
end)
Dropdown
Tab1:Dropdown("Dropdown",{"Option 1","Option 2","Option 3"},function(current)
print(current)
end)
Toggle
Tab1:Toggle("Toggle",function(x)
print(x)
end)
Slider
Tab1:Slider("Slider",16,500,function(s)
print(s)
end)
Adding Elements to Tab 2
Label
Keybind (Toggle)
Tab2:Keybind("Toggle",Enum.KeyCode.RightShift,function()
Library:Toggle()
end)