Advertisement
SirMeme

Docs

Nov 8th, 2020
781
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. local Lib = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/OxyHub/main/documentation", true))() -- gets lib
  2.  
  3. local Window = Lib:Create();--creates main lib
  4.  
  5. local MainTab = Window:CreateSection("Hello HTD") -- Create Section makes new tab
  6.  
  7. MainTab:CreateLabel("Welcome to OxyHub") -- 1 Label Text
  8. MainTab:CreateButton("Print 'ImHottie'","Print", function() -- 1 (Button Info) 2 (Button Text)
  9. print("ImHottie")
  10. end)
  11. MainTab:CreateToggle("Prints State", function(state) --1 (Toggle Info) / state = on or off
  12. print(state)
  13. end)
  14. MainTab:CreateTextBox("YayFucker", "Fucking Yes", function(val) -- 1 (TextBox Info) 2 (TextBox PlaceHolder) / val = textbox text
  15. print(val)
  16. end)
  17. MainTab:CreateSlider(16, 500, "Walkspeed", function(val) -- 1 (Min Value) 2 (Max Value) 3 (Slider Info)
  18. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = val
  19. end)
  20. MainTab:CreateKeyBind("Opens or Closes UI", Enum.KeyCode.F, function() --1 (Keybind info); 2 default keybind
  21. Lib:CloseOpen() -- closes or opens on F click
  22. end)
  23. MainTab:CreateButton("Destroy GUI","Destroy", function() --1 (Button Text); 2 (Button Info)
  24. Lib:Destroy() -- function to destroy UI
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement