DerpyFox

WallyHubTUTORIAL

Jun 7th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.29 KB | None | 0 0
  1. _ _ ___ _ _ __ __ _ _ _____ _____ _ _ _____ ___________ _____ ___ _
  2. | | | |/ _ \ | | | | \ \ / / | | | |_ _| |_ _| | | |_ _| _ | ___ \_ _|/ _ \ | |
  3. | | | / /_\ \| | | | \ V / | | | | | | | | | | | | | | | | | | |_/ / | | / /_\ \| |
  4. | |/\| | _ || | | | \ / | | | | | | | | | | | | | | | | | | / | | | _ || |
  5. \ /\ / | | || |____| |____| | | |_| |_| |_ | | | |_| | | | \ \_/ / |\ \ _| |_| | | || |____
  6. \/ \/\_| |_/\_____/\_____/\_/ \___/ \___/ \_/ \___/ \_/ \___/\_| \_|\___/\_| |_/\_____/
  7.  
  8.  
  9. I took this from this thread:
  10. https://v3rmillion.net/showthread.php?tid=952994
  11. go vouch, I only reposted so if it gets deleted you can find it here.
  12. The old UI uses "Window:" then Toggle or Button,
  13. the new one uses "w:" then Toggle or Button
  14. so if u get any errors because of that try using Window or w.
  15. ------------------------------------------------------------------------------------------------------------
  16. _ _ _
  17. | | | | | |
  18. | |__ _ _| |_| |_ ___ _ __
  19. | '_ \| | | | __| __/ _ \| '_ \
  20. | |_) | |_| | |_| || (_) | | | |
  21. |_.__/ \__,_|\__|\__\___/|_| |_|
  22.  
  23.  
  24. To add a button, very basically:
  25. local WhateverYouWantToNameThis = w:Button("Whatever You Want The Button To Say!", function()
  26. print("Whatever is between 'function()' and 'end)' will be ran when the button has been pressed")
  27. ------------------------------------------------------------------------------------------------------------
  28. _ _
  29. | | | |
  30. | |_ ___ __ _ __ _| | ___
  31. | __/ _ \ / _` |/ _` | |/ _ \
  32. | || (_) | (_| | (_| | | __/
  33. \__\___/ \__, |\__, |_|\___|
  34. __/ | __/ |
  35. |___/ |___/
  36. To add a Toggle, very basically, assuming you've got multiple toggles throughout your script:
  37. local Toggle = w:Toggle("Do whatever", {flag = "ThisNeedsToBeRemembered"})
  38. spawn(
  39. function() --Makes this a new loop within the running script so it doesn't interfere with the rest of the script
  40. while wait(1) do
  41. if w.flags.ThisNeedsToBeRemembered then
  42. print("Wow such stuff is happening, THIS IS ENABLED. Also, you can print the value (true / false) by doing:", w.flags.ThisNeedsToBeRemembered)
  43. end
  44. end
  45. end
  46. )
  47. ------------------------------------------------------------------------------------------------------------
  48. _ _ _
  49. | (_) | |
  50. ___| |_ __| | ___ _ __
  51. / __| | |/ _` |/ _ \ '__|
  52. \__ \ | | (_| | __/ |
  53. |___/_|_|\__,_|\___|_|
  54.  
  55.  
  56. Sliders are useful to give the user an easy, nice way to set a value of a "flag" EXAMPLE:
  57. local Slider = w:Slider("Walk Speed",
  58. {
  59. precise = true, --"false" will give you whole integers, "true" gives you 0.05's
  60. default = 50, --What you want the default value when the script is ran!
  61. min = 1, -- The lowest number that you can select as the user
  62. max = 1000, --The highest number you can select as the user
  63. flag = "SPEED" --Again, it's just a variable. In this case: w.flags.SPEED
  64. },
  65. function() --Makes whatever is below happen each time the slider changes it's value
  66. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(w.flags.SPEED)
  67. end)
  68. ------------------------------------------------------------------------------------------------------------
  69. _ _ _ _
  70. | | | | ___ | | | |
  71. __| |_ __ ___ _ __ __| | _____ ___ __ ( _ ) ___ ___ __ _ _ __ ___| |__ | |__ _____ __
  72. / _` | '__/ _ \| '_ \ / _` |/ _ \ \ /\ / / '_ \ / _ \/\ / __|/ _ \/ _` | '__/ __| '_ \| '_ \ / _ \ \/ /
  73. | (_| | | | (_) | |_) | (_| | (_) \ V V /| | | | | (_> < \__ \ __/ (_| | | | (__| | | | |_) | (_) > <
  74. \__,_|_| \___/| .__/ \__,_|\___/ \_/\_/ |_| |_| \___/\/ |___/\___|\__,_|_| \___|_| |_|_.__/ \___/_/\_\
  75. | |
  76. |_|
  77. These are very similar, the only difference is the fact that a Dropdown gives you all of the items in the list given, this is better off used for a lower numbers of items in the list
  78. Searchboxes have all of the items in the list, the user will then searches for the item / name in the list, this is better for many items in a given list
  79.  
  80. w:SearchBox("Epic Gamers!", { --You may put in "SearchBox" or "Dropdown"
  81. location = shared;
  82. flag = "memes";
  83. list = {
  84. "kiriot";
  85. "magikmanz";
  86. "gamer vision";
  87. "ironbrew";
  88. "WALLYYYY Heart";
  89. "firefox";
  90. "this is epic";
  91. }
  92. }, function()
  93. warn("Selected Epic Gamer: ", w.flags.memes) --This will print the one you select
  94. end)
  95.  
  96. Okay, now there are 2 ways of entering stuff into the "SearchBox" or "Dropdown"
  97. You can either just put in the data, show above with the list.
  98. OR
  99. You can do list = NameOfTheTableYourDataIsInside
  100. That will allow you to have lots of data put into the table that is all shown inside of either options you'd like
  101. ------------------------------------------------------------------------------------------------------------
  102. _ _ _
  103. | | (_) | |
  104. | |__ _ _ __ __| |
  105. | '_ \| | '_ \ / _` |
  106. | |_) | | | | | (_| |
  107. |_.__/|_|_| |_|\__,_|
  108.  
  109.  
  110. Okay, finally we have Binds! This is used for when you'd rather have a button pressed for an action to happen compared to not having to select the option inside of the Gui itself
  111. Sometimes it may be hard to select the options within the game, example: When you quickly need to disable Aimbot as you're clearly cheating and are about to get banned inside of a FPS game!
  112. All key codes can be found at: https://developer.roblox.com/en-us/api-reference/property/InputObject/KeyCode under the Name section of the table
  113.  
  114. w:Bind("Action to happen", {
  115. flag = "killbind";
  116. kbonly = true;
  117. default = Enum.KeyCode.RightAlt; --You select the key itself
  118. }, function()
  119. print("Key pressed") --Prints out when the button is pressed
  120. end)
  121.  
  122. Wally's example:
  123.  
  124. w:Bind("Kill Player", {
  125. flag = "killbind";
  126. kbonly = true;
  127. default = Enum.KeyCode.RightAlt;
  128. }, function()
  129. game.Players.LocalPlayer.Character:BreakJoints()
  130. end)
  131. ------------------------------------------------------------------------------------------------------------
  132. _ _
  133. | | | |
  134. ___ | |_| |__ ___ _ __
  135. / _ \| __| '_ \ / _ \ '__|
  136. | (_) | |_| | | | __/ |
  137. \___/ \__|_| |_|\___|_|
  138.  
  139.  
  140. So if you want to get the line under the header of the Window to be RAINBOW then just add this:
  141. library.options.underlinecolor = "rainbow"
  142. ------------------------------------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment