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