Vcsk0

Untitled

Dec 24th, 2022 (edited)
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. --// Library & Window \\--
  2.  
  3. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Vcsk/UI-Library/main/Source(2)/Kavo.lua"))()
  4. local Window = Library.CreateLib("Title", "Ocean")
  5.  
  6. --// Toggle Button \\--
  7.  
  8. if game:GetService("CoreGui"):FindFirstChild("ToggleGui") then
  9. game:GetService("CoreGui"):FindFirstChild("ToggleGui")
  10. end
  11.  
  12. local ToggleGui = Instance.new("ScreenGui")
  13. local Toggle = Instance.new("TextButton")
  14.  
  15. ToggleGui.Name = "ToggleGui"
  16. ToggleGui.Parent = game.CoreGui
  17.  
  18. Toggle.Name = "Toggle"
  19. Toggle.Parent = ToggleGui
  20. Toggle.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  21. Toggle.BackgroundTransparency = 0.660
  22. Toggle.Position = UDim2.new(0, 0, 0.454706937, 0)
  23. Toggle.Size = UDim2.new(0.0650164187, 0, 0.0888099447, 0)
  24. Toggle.Font = Enum.Font.SourceSans
  25. Toggle.Text = "Toggle"
  26. Toggle.TextColor3 = Color3.fromRGB(128, 187, 219)
  27. Toggle.TextSize = 24.000
  28. Toggle.TextXAlignment = Enum.TextXAlignment.Left
  29. Toggle.Active = true
  30. Toggle.Draggable = true
  31. Toggle.MouseButton1Click:connect(function()
  32. Library:ToggleUI()
  33. end)
  34.  
  35. -- Tabs
  36.  
  37. local t1 = Window:NewTab("Tab 1")
  38.  
  39. -- Sections
  40.  
  41. local s1 = t1:NewSection("Section Name")
  42.  
  43. -- Button
  44.  
  45. s1:NewButton("Name","Info", function()
  46. print("Button Clicked!")
  47. end)
  48.  
  49. -- Label
  50.  
  51. s1:NewLabel("Label Name")
  52.  
  53. -- Toggle
  54.  
  55. s1:NewToggle("ToggleText", "ToggleInfo", function(s)
  56. if s then
  57. print("Toggle On")
  58. else
  59. print("Toggle Off")
  60. end
  61. end)
  62.  
  63. -- Slider
  64.  
  65. s1:NewSlider("SliderText", "SliderInfo", 500, 0, function(v) -- 500 (MaxValue) | 0 (MinValue)
  66. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = v
  67. end)
  68.  
  69. -- Textbox
  70.  
  71. s1:NewTextBox("TextboxText", "TextboxInfo", function(v)
  72. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = v
  73. end)
  74.  
  75. -- Keybind for pc
  76.  
  77. s1:NewKeybind("KeybindText", "KeybindInfo", Enum.KeyCode.F, function()
  78. print("You just clicked the bind")
  79. end)
  80.  
  81. -- Dropdown
  82.  
  83. s1:NewDropdown("DropdownText", "DropdownInf", {"Option 1", "Option 2", "Option 3"}, function(c)
  84. print(c)
  85. end)
  86.  
  87. --// want more explanation? go to - https://xheptcofficial.gitbook.io/kavo-library/
Advertisement
Add Comment
Please, Sign In to add comment