Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- ----------------------------------------------------------------------------------------------------------
- local tool = script.Parent
- local player = tool.Parent.Parent
- local show_gui = player:FindFirstChild("PlayerGui")
- local checking = false
- local level = 0
- local limit = 0
- local coloring = Color3.new(.8,.8,.8)
- ----------------------------------------------------------------------------------------------------------
- function remove_name(name,direct_path)
- if not checking then
- checking = true
- for i, v in ipairs (direct_path:children()) do
- if v.Name == name then
- v:remove()
- end
- end
- end
- checking = false
- end
- ----------------------------------------------------------------------------------------------------------
- function remove_classname(name,direct_path)
- if not checking then
- checking = true
- for i, v in ipairs (direct_path:children()) do
- if v.ClassName == name then
- v:remove()
- end
- end
- end
- checking = false
- end
- ----------------------------------------------------------------------------------------------------------
- function count_children(r,t)
- count = 0
- pcall(function()
- for i, v in pairs (r:children()) do
- count = count + 1
- end
- end)
- if count < 1 then
- t:remove()
- end
- end
- ----------------------------------------------------------------------------------------------------------
- function extra()
- keep = Instance.new("ScreenGui",show_gui)
- keep.Name = "Extra"
- back = Instance.new("TextButton",keep) -- Return to Workspace
- back.Size = UDim2.new(0,130,0,25)
- back.Position = UDim2.new(0,30,0,141)
- back.Text = "Return to Workspace"
- back.BackgroundColor3 = coloring
- back.MouseButton1Down:connect(function()
- level = 0
- clean_gui()
- wait(load_time)
- hallo(Workspace,level)
- end)
- back = Instance.new("TextButton",keep) -- Return to Game
- back.Size = UDim2.new(0,130,0,25)
- back.Position = UDim2.new(0,30,0,116)
- back.Text = "Return to Game"
- back.BackgroundColor3 = coloring
- back.MouseButton1Down:connect(function()
- level = 0
- clean_gui()
- wait(load_time)
- hallo(game,level)
- end)
- back = Instance.new("TextButton",keep) -- Up One Level
- back.Size = UDim2.new(0,130,0,25)
- back.Position = UDim2.new(0,30,0,166)
- back.Text = "Up One Level"
- back.BackgroundColor3 = coloring
- back.MouseButton1Down:connect(function()
- Spawn(function()
- level = 0
- clean_gui()
- wait(load_time)
- hallo(current.Parent,level)
- end)
- end)
- back = Instance.new("TextButton",keep) -- Refresh Current Level
- back.Size = UDim2.new(0,130,0,25)
- back.Position = UDim2.new(0,30,0,191)
- back.Text = "Refresh Current Level"
- back.BackgroundColor3 = coloring
- back.MouseButton1Down:connect(function()
- clean_gui()
- wait(load_time)
- hallo(current,level)
- end)
- back = Instance.new("TextButton",keep) -- Increase Level
- back.Size = UDim2.new(0,30,0,25)
- back.Position = UDim2.new(0,60,0,500)
- back.Text = ">"
- back.BackgroundColor3 = coloring
- back.MouseButton1Down:connect(function()
- if level ~= limit then
- level = level + 120
- clean_gui()
- wait(load_time)
- hallo(current,level)
- end
- end)
- back = Instance.new("TextButton",keep) -- Decrease Level
- back.Size = UDim2.new(0,30,0,25)
- back.Position = UDim2.new(0,30,0,500)
- back.Text = "<"
- back.BackgroundColor3 = coloring
- back.MouseButton1Down:connect(function()
- if level ~= 0 then
- level = level - 120
- clean_gui()
- wait(load_time)
- hallo(current,level)
- end
- end)
- back_1 = Instance.new("TextButton",keep) -- Clear Children By Name
- back_1.Size = UDim2.new(0,130,0,25)
- back_1.Position = UDim2.new(0,30,0,250)
- back_1.Text = "Clear Children By Name"
- back_1.BackgroundColor3 = coloring
- back_1.MouseButton1Down:connect(function()
- Spawn(function() remove_name(search_part.Text,current) end)
- wait(load_time)
- clean_gui()
- wait(load_time)
- hallo(current,level)
- end)
- back_1 = Instance.new("TextButton",keep) -- Clear Children By ClassName
- back_1.Size = UDim2.new(0,130,0,25)
- back_1.Position = UDim2.new(0,30,0,275)
- back_1.Text = "Clear Children By Class"
- back_1.BackgroundColor3 = coloring
- back_1.MouseButton1Down:connect(function()
- Spawn(function() remove_classname(search_part.Text,current) end)
- wait(load_time)
- clean_gui()
- wait(load_time)
- hallo(current,level)
- end)
- search_part = Instance.new("TextBox",keep) -- Child Name Here
- search_part.Size = UDim2.new(0,130,0,25)
- search_part.Position = UDim2.new(0,30,0,300)
- search_part.Text = "[Child Name Here]"
- search_part.BackgroundColor3 = coloring
- back = Instance.new("TextButton",keep) -- Clear All Children
- back.Size = UDim2.new(0,130,0,25)
- back.Position = UDim2.new(0,30,0,456)
- back.Text = "Clear All Children"
- back.BackgroundColor3 = coloring
- back.MouseButton1Down:connect(function()
- for i, v in ipairs (current:children()) do
- Spawn(function()
- v:remove()
- end)
- end
- level = 0
- clean_gui()
- wait(load_time)
- hallo(current.Parent,level)
- end)
- end
- ----------------------------------------------------------------------------------------------------------
- function hallo(chi,num)
- Spawn(function()
- current = chi
- hold = Instance.new("ScreenGui",show_gui)
- hold.Name = "Hold"
- for i, v in ipairs (chi:children()) do
- limit = i
- local gui_word = Instance.new("TextLabel",hold)
- gui_word.Size = UDim2.new(0,150,0,16)
- gui_word.BackgroundColor3 = coloring
- back.BackgroundColor3 = coloring
- pcall(function() gui_word.Text = v.Name end)
- local touch_gui = Instance.new("TextButton",hold)
- touch_gui.Size = UDim2.new(0,20,0,16)
- touch_gui.Text = "X"
- touch_gui.BackgroundColor3 = coloring
- local expand_gui = Instance.new("TextButton",hold)
- expand_gui.Size = UDim2.new(0,20,0,16)
- expand_gui.Text = "+"
- expand_gui.BackgroundColor3 = coloring
- count_children(v,expand_gui)
- if i <= num + 40 then
- gui_word.Position = UDim2.new(0,205,0,100+i*16) -- V.Name V
- touch_gui.Position = UDim2.new(0,180,0,100+i*16) -- Remove V GUI. X
- expand_gui.Position = UDim2.new(0,360,0,100+i*16) -- Deeper indepth. +
- elseif i > num + 40 and i <= num + 80 then
- gui_word.Position = UDim2.new(0,440,0,(i-38.75)*16+80) -- V.Name V
- touch_gui.Position = UDim2.new(0,415,0,(i-38.75)*16+80) -- Remove V GUI. X
- expand_gui.Position = UDim2.new(0,595,0,(i-38.75)*16+80) -- Deeper indepth. +
- elseif i > num + 80 and i <= num + 120 then
- gui_word.Position = UDim2.new(0,675,0,(i-78.75)*16+80) -- V.Name V
- touch_gui.Position = UDim2.new(0,650,0,(i-78.75)*16+80) -- Remove V GUI. X
- expand_gui.Position = UDim2.new(0,830,0,(i-78.75)*16+80) -- Deeper indepth. +
- elseif i > num + 120 or i >= num then
- gui_word:remove()
- touch_gui:remove()
- expand_gui:remove()
- break
- end
- ----------------------------------------------------------------------------------------------------------
- touch_gui.MouseButton1Down:connect(function()
- gui_word:remove()
- expand_gui:remove()
- touch_gui:remove()
- v:remove()
- end)
- ----------------------------------------------------------------------------------------------------------
- expand_gui.MouseButton1Down:connect(function() clean_gui() wait(load_time) hallo(v,level) end)
- end
- end)
- end
- ----------------------------------------------------------------------------------------------------------
- function clean_extra() keep:remove() end
- function clean_gui() Spawn(function() for i = 1, 3 do hold:remove() end end) end
- ----------------------------------------------------------------------------------------------------------
- tool.Selected:connect(function() hallo(game,level) extra() end)
- tool.Deselected:connect(function() clean_gui() clean_extra() end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement