Advertisement
whiteyume

Untitled

Apr 8th, 2021
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
  2.  
  3. local w = library:CreateWindow("A") -- Creates the window
  4.  
  5. local b = w:CreateFolder("B") -- Creates the folder(U will put here your buttons,etc)
  6.  
  7. b:Label("Pretty Useless NGL",{
  8. TextSize = 25; -- Self Explaining
  9. TextColor = Color3.fromRGB(255,255,255); -- Self Explaining
  10. BgColor = Color3.fromRGB(69,69,69); -- Self Explaining
  11.  
  12. })
  13.  
  14. b:Button("Button",function()
  15. print("Elym Winning")
  16. end)
  17.  
  18. b:Toggle("Toggle",function(bool)
  19. shared.toggle = bool
  20. print(shared.toggle)
  21. end)
  22.  
  23. b:Slider("Slider",{
  24. min = 10; -- min value of the slider
  25. max = 50; -- max value of the slider
  26. precise = true; -- max 2 decimals
  27. },function(value)
  28. print(value)
  29. end)
  30.  
  31. b:Dropdown("Dropdown",{"A","B","C"},true,function(mob) --true/false, replaces the current title "Dropdown" with the option that t
  32. print(mob)
  33. end)
  34.  
  35. b:Bind("Bind",Enum.KeyCode.C,function() --Default bind
  36. print("Yes")
  37. end)
  38.  
  39. b:ColorPicker("ColorPicker",Color3.fromRGB(255,0,0),function(color) --Default color
  40. print(color)
  41. end)
  42.  
  43. b:Box("Box","number",function(value) -- "number" or "string"
  44. print(value)
  45. end)
  46.  
  47. --[[
  48. How to refresh a dropdown:
  49. 1)Create the dropdown and save it in a variable
  50. local yourvariable = b:Dropdown("Hi",yourtable,function(a)
  51. print(a)
  52. end)
  53. 2)Refresh it using the function
  54. yourvariable:Refresh(yourtable)
  55. How to refresh a label:
  56. 1)Create your label and save it in a variable
  57. local yourvariable = b:Label("Pretty Useless NGL",{
  58. TextSize = 25; -- Self Explaining
  59. TextColor = Color3.fromRGB(255,255,255);
  60. BgColor = Color3.fromRGB(69,69,69);
  61. })
  62. 2)Refresh it using the function
  63. yourvariable:Refresh("Hello") It will only change the text ofc
  64. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement