Advertisement
NiceBBMBThai

Gui Free Icon16

Apr 21st, 2021
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/miroeramaa/TurtleLib/main/TurtleUiLib.lua"))()
  2. local window = library:Window("Window")
  3. -- Name of button, callback
  4.  
  5. window:Button("Button name", function()
  6. print("pressed button")
  7. end)
  8. -- Name of the toggle, default state of the toggle, callback
  9.  
  10. window:Toggle("Example toggle", true, function(bool)
  11. print(bool) -- bool is true or false depending on the state of the toggle
  12. end)
  13. -- Name, default color (set to true to make the default rainbow), callback
  14.  
  15. window:ColorPicker("Color Picker", Color3.fromRGB(255, 255, 255), function(color)
  16. print(color)
  17. end)
  18. -- Name of slider, minimum value, maximum value, default value, callback
  19.  
  20. window:Slider("Example Slider",0,100,20, function(value)
  21. print(value)
  22. end)
  23. -- Text, color: setting color to true will give it a rainbow effect!
  24.  
  25. window:Label("Credits to Intrer#0421", Color3.fromRGB(127, 143, 166))
  26. -- Name, callback
  27.  
  28. window:Box("Walkspeed", function(text, focuslost)
  29. if focuslost then
  30. print(text)
  31. end
  32. end)
  33. -- The callback will be called with two arguments, the text that the player inputted and whether the player has stopped writing
  34. -- Name, table with names of the button that you want, callback that will be called with the name of the button that was pressed
  35.  
  36. local dropdown = window:Dropdown("Example dropdown", {"Button 1", "Button 2", "Third button"}, function(name)
  37. print(name)
  38. end)
  39. -- Name
  40.  
  41. dropdown:Button("New button")
  42. -- Name
  43.  
  44. dropdown:Remove("Button")
  45. -- Key
  46.  
  47. library:Keybind("P")
  48.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement