Advertisement
Exunys

hyphon ui lib test

Nov 26th, 2024
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.24 KB | None | 0 0
  1. local Hyphon = loadstring(game:HttpGet("https://raw.githubusercontent.com/scotdotwtf/Hyphon-UI-Library-Reupload/main/Hyphon_Library.lua"))({cheatname = 'cheat name', gamename = "game name"})
  2.  
  3. -- menu
  4. local menu = library:create('menu', {
  5.     text = "test",
  6.     size = UDim2.new(0, 1000, 0, 500), -- change this to what you want idk
  7.     position = UDim2.new(0.5, 0, 0.5, 0)
  8. })
  9. library.menu = menu
  10.  
  11.  
  12. -- tab
  13. local tab = menu:tab({
  14.     text = "test",
  15.     order = 1 -- idk whats this
  16. })
  17.  
  18. -- section
  19. local section = tab:section({
  20.     text = "section name",
  21.     side = 1 -- if 1 is left then 2 should be right (you should try both)
  22. })
  23.  
  24. -- toggle
  25. local toggle = section:toggle({
  26.     default = false, -- default value
  27.     text = "toggle name",
  28.     order = 1, -- idk whats this
  29.     enabled = true, -- idk whats this?
  30.     callback = function(Value)
  31.         print("Toggle set to: ", Value)
  32.     end
  33. })
  34.  
  35.  
  36. -- slider
  37. local slider = section:slider({
  38.     default = 0,
  39.     min = 0,
  40.     max = 10,
  41.     increment = 1,
  42.     text = "slider name",
  43.     order = 1, -- idk
  44.     enabled = true,
  45.     callback = function(Value)
  46.         print("Slider value set to: ", Value)
  47.     end
  48. })
  49.  
  50. -- TOGGLE SLIDER??: local slider = toggle:slider(properties <table>)
  51.  
  52. -- colorpicker
  53. local colorpicker = section:colorpicker({
  54.     default = Color3.fromRGB(0, 255, 0), -- green
  55.     default_opacity = 10, -- Alpha - RGB(A)
  56.     text = "colorpicker name",
  57.     order = 1, -- idk
  58.     enabled = true,
  59.     callback = function(Value, Opacity)
  60.         print("Colorpicker value: ", Value)
  61.         print("Colorpicker opacity: ", Opacity)
  62.     end
  63. })
  64.  
  65. -- keybind
  66. local keybind = section:keybind({
  67.     default = Enum.KeyCode.E,
  68.     mode = "toggle",
  69.     text = "keybind name"
  70.     order = 1,
  71.     enabled = true,
  72.     callback = function(Value)
  73.         print("Keybind changed? : ", Value)
  74.     end
  75. })
  76.  
  77.  
  78. -- textbox
  79. local textbox = section:textbox({
  80.     default = "starting value",
  81.     placehoder = "placeholder text",
  82.     text = "textbox name",
  83.     enabled = true,
  84.     order = 1,
  85.     callback = function(Value)
  86.         print("Textbox changed to: ", Value)
  87.     end
  88. })
  89.  
  90. -- button
  91. local button = section:button({
  92.     text = "button name",
  93.     order = 1,
  94.     enabled = true,
  95.     callback = function()
  96.         print("Button clicked")
  97.     end
  98. })
  99.  
  100.  
  101. -- separator
  102. local separator = section:separator({
  103.     text = "label name",
  104.     order = 1,
  105.     enabled = true,
  106. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement