Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Config = {
- WindowName = "Example Library",
- Color = Color3.fromRGB(255,128,0),
- Keybind = Enum.KeyCode.RightBracket
- }
- local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/AlexR32/Roblox/main/BracketV3.lua"))()
- local Window = Library:CreateWindow(Config, game:GetService("CoreGui"))
- local Tab1 = Window:CreateTab("Example")
- local Tab2 = Window:CreateTab("UI Settings")
- local Section1 = Tab1:CreateSection("First Section")
- local Section2 = Tab1:CreateSection("Second Section")
- local Section3 = Tab2:CreateSection("Menu")
- --local Section4 = Tab2:CreateSection("Configuration")
- --local Section5 = Tab2:CreateSection("Misc")
- Section1:CreateLabel("Label 1")
- -------------
- local Button1 = Section1:CreateButton("Button 1", function()
- print("Click Button 1")
- end)
- Button1:AddToolTip("Button 1 ToolTip")
- -------------
- local Toggle1 = Section1:CreateToggle("Toggle 1", function(State)
- print(State)
- end)
- Toggle1:AddToolTip("Toggle 1 ToolTip")
- Toggle1:CreateKeybind("Y", function(Key)
- print(Key)
- end)
- -------------
- local Slider1 = Section1:CreateSlider("Slider 1", 0,100,true, function(Value)
- print(Value)
- end)
- Slider1:AddToolTip("Slider 1 ToolTip")
- Slider1:SetValue(50)
- -------------
- local Dropdown1 = Section1:CreateDropdown("Dropdown 1")
- Dropdown1:AddToolTip("Dropdown 1 ToolTip")
- local Option1 = Dropdown1:AddOption("Option 1", function(String)
- print(String)
- end)
- local Option2 = Dropdown1:AddOption("Option 2", function(String)
- print(String)
- end)
- local Option3 = Dropdown1:AddOption("Option 3", function(String)
- print(String)
- end)
- Option1:SetOption()
- -------------
- local Colorpicker1 = Section1:CreateColorpicker("Colorpicker 1", function(Color)
- print(Color)
- end)
- Colorpicker1:AddToolTip("Colorpicker 1 ToolTip")
- Colorpicker1:UpdateColor(Color3.fromRGB(255,0,0))
- -------------
- Section2:CreateLabel("Label 2\nMultiline")
- -------------
- local Button2 = Section2:CreateButton("Button 2\nMultiline", function()
- print("Click Button 2")
- end)
- Button2:AddToolTip("Button 2 ToolTip\nMultiline")
- -------------
- local Toggle2 = Section2:CreateToggle("Toggle 2\nMultiline", function(State)
- print(State)
- end)
- Toggle2:AddToolTip("Toggle 2 ToolTip\nMultiline")
- Toggle2:CreateKeybind("U", function(Key)
- print(Key)
- end)
- -------------
- local Slider2 = Section2:CreateSlider("Slider 2\nMultiline", 0,100,false, function(Value)
- print(Value)
- end)
- Slider2:AddToolTip("Slider 2 ToolTip\nMultiline")
- Slider2:SetValue(25)
- -------------
- local Dropdown2 = Section2:CreateDropdown("Dropdown 2\nMultiline")
- Dropdown2:AddToolTip("Dropdown 2 ToolTip")
- local Option4 = Dropdown2:AddOption("Option 4", function(String)
- print(String)
- end)
- local Option5 = Dropdown2:AddOption("Option 5", function(String)
- print(String)
- end)
- local Option6 = Dropdown2:AddOption("Option 6", function(String)
- print(String)
- end)
- Option6:SetOption()
- -------------
- local Colorpicker2 = Section2:CreateColorpicker("Colorpicker 2\nMultiline", function(Color)
- print(Color)
- end)
- Colorpicker2:AddToolTip("Colorpicker 2 ToolTip")
- Colorpicker2:UpdateColor(Color3.fromRGB(0,0,255))
- -------------
- local Toggle3 = Section3:CreateToggle("UI Toggle", function(State)
- Window:Toggle(State)
- end)
- Toggle3:AddToolTip("Open/Close " .. Config.WindowName)
- Toggle3:SetState(true)
- Toggle3:CreateKeybind(tostring(Config.Keybind):gsub("Enum.KeyCode.", ""), function(Key)
- Config.Keybind = Enum.KeyCode[Key]
- end)
- local Slider3 = Section3:CreateSlider("Tile Size",0,1000,1, function(Value)
- Window:SetTileSize(Value)
- end)
- Slider3:AddToolTip("Set Background Tile Size")
- Slider3:SetValue(500)
- local Colorpicker3 = Section3:CreateColorpicker("UI Color", function(Color)
- Window:ChangeColor(Color)
- end)
- Colorpicker3:UpdateColor(Config.Color)
- Colorpicker3:AddToolTip("Change library color")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement