Advertisement
NiceBBMBThai

CSGO LIKE UI LIBRARY

Jul 27th, 2021
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. local Config = {
  2. WindowName = "Example Library",
  3. Color = Color3.fromRGB(255,128,0),
  4. Keybind = Enum.KeyCode.RightBracket
  5. }
  6.  
  7. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/AlexR32/Roblox/main/BracketV3.lua"))()
  8. local Window = Library:CreateWindow(Config, game:GetService("CoreGui"))
  9.  
  10. local Tab1 = Window:CreateTab("Example")
  11. local Tab2 = Window:CreateTab("UI Settings")
  12.  
  13. local Section1 = Tab1:CreateSection("First Section")
  14. local Section2 = Tab1:CreateSection("Second Section")
  15. local Section3 = Tab2:CreateSection("Menu")
  16. --local Section4 = Tab2:CreateSection("Configuration")
  17. --local Section5 = Tab2:CreateSection("Misc")
  18.  
  19. Section1:CreateLabel("Label 1")
  20. -------------
  21. local Button1 = Section1:CreateButton("Button 1", function()
  22. print("Click Button 1")
  23. end)
  24. Button1:AddToolTip("Button 1 ToolTip")
  25. -------------
  26. local Toggle1 = Section1:CreateToggle("Toggle 1", function(State)
  27. print(State)
  28. end)
  29. Toggle1:AddToolTip("Toggle 1 ToolTip")
  30. Toggle1:CreateKeybind("Y", function(Key)
  31. print(Key)
  32. end)
  33. -------------
  34. local Slider1 = Section1:CreateSlider("Slider 1", 0,100,true, function(Value)
  35. print(Value)
  36. end)
  37. Slider1:AddToolTip("Slider 1 ToolTip")
  38. Slider1:SetValue(50)
  39. -------------
  40. local Dropdown1 = Section1:CreateDropdown("Dropdown 1")
  41. Dropdown1:AddToolTip("Dropdown 1 ToolTip")
  42. local Option1 = Dropdown1:AddOption("Option 1", function(String)
  43. print(String)
  44. end)
  45. local Option2 = Dropdown1:AddOption("Option 2", function(String)
  46. print(String)
  47. end)
  48. local Option3 = Dropdown1:AddOption("Option 3", function(String)
  49. print(String)
  50. end)
  51. Option1:SetOption()
  52. -------------
  53. local Colorpicker1 = Section1:CreateColorpicker("Colorpicker 1", function(Color)
  54. print(Color)
  55. end)
  56. Colorpicker1:AddToolTip("Colorpicker 1 ToolTip")
  57. Colorpicker1:UpdateColor(Color3.fromRGB(255,0,0))
  58. -------------
  59. Section2:CreateLabel("Label 2\nMultiline")
  60. -------------
  61. local Button2 = Section2:CreateButton("Button 2\nMultiline", function()
  62. print("Click Button 2")
  63. end)
  64. Button2:AddToolTip("Button 2 ToolTip\nMultiline")
  65. -------------
  66. local Toggle2 = Section2:CreateToggle("Toggle 2\nMultiline", function(State)
  67. print(State)
  68. end)
  69. Toggle2:AddToolTip("Toggle 2 ToolTip\nMultiline")
  70. Toggle2:CreateKeybind("U", function(Key)
  71. print(Key)
  72. end)
  73. -------------
  74. local Slider2 = Section2:CreateSlider("Slider 2\nMultiline", 0,100,false, function(Value)
  75. print(Value)
  76. end)
  77. Slider2:AddToolTip("Slider 2 ToolTip\nMultiline")
  78. Slider2:SetValue(25)
  79. -------------
  80. local Dropdown2 = Section2:CreateDropdown("Dropdown 2\nMultiline")
  81. Dropdown2:AddToolTip("Dropdown 2 ToolTip")
  82. local Option4 = Dropdown2:AddOption("Option 4", function(String)
  83. print(String)
  84. end)
  85. local Option5 = Dropdown2:AddOption("Option 5", function(String)
  86. print(String)
  87. end)
  88. local Option6 = Dropdown2:AddOption("Option 6", function(String)
  89. print(String)
  90. end)
  91. Option6:SetOption()
  92. -------------
  93. local Colorpicker2 = Section2:CreateColorpicker("Colorpicker 2\nMultiline", function(Color)
  94. print(Color)
  95. end)
  96. Colorpicker2:AddToolTip("Colorpicker 2 ToolTip")
  97. Colorpicker2:UpdateColor(Color3.fromRGB(0,0,255))
  98. -------------
  99. local Toggle3 = Section3:CreateToggle("UI Toggle", function(State)
  100. Window:Toggle(State)
  101. end)
  102. Toggle3:AddToolTip("Open/Close " .. Config.WindowName)
  103. Toggle3:SetState(true)
  104. Toggle3:CreateKeybind(tostring(Config.Keybind):gsub("Enum.KeyCode.", ""), function(Key)
  105. Config.Keybind = Enum.KeyCode[Key]
  106. end)
  107. local Slider3 = Section3:CreateSlider("Tile Size",0,1000,1, function(Value)
  108. Window:SetTileSize(Value)
  109. end)
  110. Slider3:AddToolTip("Set Background Tile Size")
  111. Slider3:SetValue(500)
  112. local Colorpicker3 = Section3:CreateColorpicker("UI Color", function(Color)
  113. Window:ChangeColor(Color)
  114. end)
  115. Colorpicker3:UpdateColor(Config.Color)
  116. Colorpicker3:AddToolTip("Change library color")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement