Advertisement
zed_isJayTheLionJR

Untitled

Sep 5th, 2021
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.54 KB | None | 0 0
  1. wait()
  2. ----------------------------------------------------------------------------------------------------------
  3. local tool = script.Parent
  4. local player = tool.Parent.Parent
  5. local show_gui = player:FindFirstChild("PlayerGui")
  6. local checking = false
  7. local level = 0
  8. local limit = 0
  9. local coloring = Color3.new(.8,.8,.8)
  10. ----------------------------------------------------------------------------------------------------------
  11. function remove_name(name,direct_path)
  12. if not checking then
  13. checking = true
  14. for i, v in ipairs (direct_path:children()) do
  15. if v.Name == name then
  16. v:remove()
  17. end
  18. end
  19. end
  20. checking = false
  21. end
  22. ----------------------------------------------------------------------------------------------------------
  23. function remove_classname(name,direct_path)
  24. if not checking then
  25. checking = true
  26. for i, v in ipairs (direct_path:children()) do
  27. if v.ClassName == name then
  28. v:remove()
  29. end
  30. end
  31. end
  32. checking = false
  33. end
  34. ----------------------------------------------------------------------------------------------------------
  35. function count_children(r,t)
  36. count = 0
  37. pcall(function()
  38. for i, v in pairs (r:children()) do
  39. count = count + 1
  40. end
  41. end)
  42. if count < 1 then
  43. t:remove()
  44. end
  45. end
  46. ----------------------------------------------------------------------------------------------------------
  47. function extra()
  48. keep = Instance.new("ScreenGui",show_gui)
  49. keep.Name = "Extra"
  50. back = Instance.new("TextButton",keep) -- Return to Workspace
  51. back.Size = UDim2.new(0,130,0,25)
  52. back.Position = UDim2.new(0,30,0,141)
  53. back.Text = "Return to Workspace"
  54. back.BackgroundColor3 = coloring
  55. back.MouseButton1Down:connect(function()
  56. level = 0
  57. clean_gui()
  58. wait(load_time)
  59. hallo(Workspace,level)
  60. end)
  61.  
  62. back = Instance.new("TextButton",keep) -- Return to Game
  63. back.Size = UDim2.new(0,130,0,25)
  64. back.Position = UDim2.new(0,30,0,116)
  65. back.Text = "Return to Game"
  66. back.BackgroundColor3 = coloring
  67. back.MouseButton1Down:connect(function()
  68. level = 0
  69. clean_gui()
  70. wait(load_time)
  71. hallo(game,level)
  72. end)
  73.  
  74. back = Instance.new("TextButton",keep) -- Up One Level
  75. back.Size = UDim2.new(0,130,0,25)
  76. back.Position = UDim2.new(0,30,0,166)
  77. back.Text = "Up One Level"
  78. back.BackgroundColor3 = coloring
  79. back.MouseButton1Down:connect(function()
  80. Spawn(function()
  81. level = 0
  82. clean_gui()
  83. wait(load_time)
  84. hallo(current.Parent,level)
  85. end)
  86. end)
  87.  
  88. back = Instance.new("TextButton",keep) -- Refresh Current Level
  89. back.Size = UDim2.new(0,130,0,25)
  90. back.Position = UDim2.new(0,30,0,191)
  91. back.Text = "Refresh Current Level"
  92. back.BackgroundColor3 = coloring
  93. back.MouseButton1Down:connect(function()
  94. clean_gui()
  95. wait(load_time)
  96. hallo(current,level)
  97. end)
  98.  
  99. back = Instance.new("TextButton",keep) -- Increase Level
  100. back.Size = UDim2.new(0,30,0,25)
  101. back.Position = UDim2.new(0,60,0,500)
  102. back.Text = ">"
  103. back.BackgroundColor3 = coloring
  104. back.MouseButton1Down:connect(function()
  105. if level ~= limit then
  106. level = level + 120
  107. clean_gui()
  108. wait(load_time)
  109. hallo(current,level)
  110. end
  111. end)
  112.  
  113. back = Instance.new("TextButton",keep) -- Decrease Level
  114. back.Size = UDim2.new(0,30,0,25)
  115. back.Position = UDim2.new(0,30,0,500)
  116. back.Text = "<"
  117. back.BackgroundColor3 = coloring
  118. back.MouseButton1Down:connect(function()
  119. if level ~= 0 then
  120. level = level - 120
  121. clean_gui()
  122. wait(load_time)
  123. hallo(current,level)
  124. end
  125. end)
  126.  
  127. back_1 = Instance.new("TextButton",keep) -- Clear Children By Name
  128. back_1.Size = UDim2.new(0,130,0,25)
  129. back_1.Position = UDim2.new(0,30,0,250)
  130. back_1.Text = "Clear Children By Name"
  131. back_1.BackgroundColor3 = coloring
  132. back_1.MouseButton1Down:connect(function()
  133. Spawn(function() remove_name(search_part.Text,current) end)
  134. wait(load_time)
  135. clean_gui()
  136. wait(load_time)
  137. hallo(current,level)
  138. end)
  139.  
  140. back_1 = Instance.new("TextButton",keep) -- Clear Children By ClassName
  141. back_1.Size = UDim2.new(0,130,0,25)
  142. back_1.Position = UDim2.new(0,30,0,275)
  143. back_1.Text = "Clear Children By Class"
  144. back_1.BackgroundColor3 = coloring
  145. back_1.MouseButton1Down:connect(function()
  146. Spawn(function() remove_classname(search_part.Text,current) end)
  147. wait(load_time)
  148. clean_gui()
  149. wait(load_time)
  150. hallo(current,level)
  151. end)
  152.  
  153. search_part = Instance.new("TextBox",keep) -- Child Name Here
  154. search_part.Size = UDim2.new(0,130,0,25)
  155. search_part.Position = UDim2.new(0,30,0,300)
  156. search_part.Text = "[Child Name Here]"
  157. search_part.BackgroundColor3 = coloring
  158.  
  159. back = Instance.new("TextButton",keep) -- Clear All Children
  160. back.Size = UDim2.new(0,130,0,25)
  161. back.Position = UDim2.new(0,30,0,456)
  162. back.Text = "Clear All Children"
  163. back.BackgroundColor3 = coloring
  164. back.MouseButton1Down:connect(function()
  165. for i, v in ipairs (current:children()) do
  166. Spawn(function()
  167. v:remove()
  168. end)
  169. end
  170. level = 0
  171. clean_gui()
  172. wait(load_time)
  173. hallo(current.Parent,level)
  174. end)
  175. end
  176. ----------------------------------------------------------------------------------------------------------
  177. function hallo(chi,num)
  178. Spawn(function()
  179. current = chi
  180. hold = Instance.new("ScreenGui",show_gui)
  181. hold.Name = "Hold"
  182. for i, v in ipairs (chi:children()) do
  183. limit = i
  184. local gui_word = Instance.new("TextLabel",hold)
  185. gui_word.Size = UDim2.new(0,150,0,16)
  186. gui_word.BackgroundColor3 = coloring
  187. back.BackgroundColor3 = coloring
  188. pcall(function() gui_word.Text = v.Name end)
  189. local touch_gui = Instance.new("TextButton",hold)
  190. touch_gui.Size = UDim2.new(0,20,0,16)
  191. touch_gui.Text = "X"
  192. touch_gui.BackgroundColor3 = coloring
  193. local expand_gui = Instance.new("TextButton",hold)
  194. expand_gui.Size = UDim2.new(0,20,0,16)
  195. expand_gui.Text = "+"
  196. expand_gui.BackgroundColor3 = coloring
  197. count_children(v,expand_gui)
  198. if i <= num + 40 then
  199. gui_word.Position = UDim2.new(0,205,0,100+i*16) -- V.Name V
  200. touch_gui.Position = UDim2.new(0,180,0,100+i*16) -- Remove V GUI. X
  201. expand_gui.Position = UDim2.new(0,360,0,100+i*16) -- Deeper indepth. +
  202. elseif i > num + 40 and i <= num + 80 then
  203. gui_word.Position = UDim2.new(0,440,0,(i-38.75)*16+80) -- V.Name V
  204. touch_gui.Position = UDim2.new(0,415,0,(i-38.75)*16+80) -- Remove V GUI. X
  205. expand_gui.Position = UDim2.new(0,595,0,(i-38.75)*16+80) -- Deeper indepth. +
  206. elseif i > num + 80 and i <= num + 120 then
  207. gui_word.Position = UDim2.new(0,675,0,(i-78.75)*16+80) -- V.Name V
  208. touch_gui.Position = UDim2.new(0,650,0,(i-78.75)*16+80) -- Remove V GUI. X
  209. expand_gui.Position = UDim2.new(0,830,0,(i-78.75)*16+80) -- Deeper indepth. +
  210. elseif i > num + 120 or i >= num then
  211. gui_word:remove()
  212. touch_gui:remove()
  213. expand_gui:remove()
  214. break
  215. end
  216. ----------------------------------------------------------------------------------------------------------
  217. touch_gui.MouseButton1Down:connect(function()
  218. gui_word:remove()
  219. expand_gui:remove()
  220. touch_gui:remove()
  221. v:remove()
  222. end)
  223. ----------------------------------------------------------------------------------------------------------
  224. expand_gui.MouseButton1Down:connect(function() clean_gui() wait(load_time) hallo(v,level) end)
  225. end
  226. end)
  227. end
  228. ----------------------------------------------------------------------------------------------------------
  229. function clean_extra() keep:remove() end
  230. function clean_gui() Spawn(function() for i = 1, 3 do hold:remove() end end) end
  231. ----------------------------------------------------------------------------------------------------------
  232. tool.Selected:connect(function() hallo(game,level) extra() end)
  233. tool.Deselected:connect(function() clean_gui() clean_extra() end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement