Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Library & Window \\--
- local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Vcsk/UI-Library/main/Source(2)/Kavo.lua"))()
- local Window = Library.CreateLib("Title", "Ocean")
- --// Toggle Button \\--
- if game:GetService("CoreGui"):FindFirstChild("ToggleGui") then
- game:GetService("CoreGui"):FindFirstChild("ToggleGui")
- end
- local ToggleGui = Instance.new("ScreenGui")
- local Toggle = Instance.new("TextButton")
- ToggleGui.Name = "ToggleGui"
- ToggleGui.Parent = game.CoreGui
- Toggle.Name = "Toggle"
- Toggle.Parent = ToggleGui
- Toggle.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
- Toggle.BackgroundTransparency = 0.660
- Toggle.Position = UDim2.new(0, 0, 0.454706937, 0)
- Toggle.Size = UDim2.new(0.0650164187, 0, 0.0888099447, 0)
- Toggle.Font = Enum.Font.SourceSans
- Toggle.Text = "Toggle"
- Toggle.TextColor3 = Color3.fromRGB(128, 187, 219)
- Toggle.TextSize = 24.000
- Toggle.TextXAlignment = Enum.TextXAlignment.Left
- Toggle.Active = true
- Toggle.Draggable = true
- Toggle.MouseButton1Click:connect(function()
- Library:ToggleUI()
- end)
- -- Tabs
- local t1 = Window:NewTab("Tab 1")
- -- Sections
- local s1 = t1:NewSection("Section Name")
- -- Button
- s1:NewButton("Name","Info", function()
- print("Button Clicked!")
- end)
- -- Label
- s1:NewLabel("Label Name")
- -- Toggle
- s1:NewToggle("ToggleText", "ToggleInfo", function(s)
- if s then
- print("Toggle On")
- else
- print("Toggle Off")
- end
- end)
- -- Slider
- s1:NewSlider("SliderText", "SliderInfo", 500, 0, function(v) -- 500 (MaxValue) | 0 (MinValue)
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = v
- end)
- -- Textbox
- s1:NewTextBox("TextboxText", "TextboxInfo", function(v)
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = v
- end)
- -- Keybind for pc
- s1:NewKeybind("KeybindText", "KeybindInfo", Enum.KeyCode.F, function()
- print("You just clicked the bind")
- end)
- -- Dropdown
- s1:NewDropdown("DropdownText", "DropdownInf", {"Option 1", "Option 2", "Option 3"}, function(c)
- print(c)
- end)
- --// want more explanation? go to - https://xheptcofficial.gitbook.io/kavo-library/
Advertisement
Add Comment
Please, Sign In to add comment