SebTDZ

Vex Explorer V6

Aug 1st, 2019
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Player = owner.Name
  2.  
  3. local ScreenGui = Instance.new("ScreenGui",game:GetService("Players")[Player].PlayerGui)
  4. ScreenGui.Name = "Explorer"
  5.  
  6. function rgb(RED,GREEN,BLUE)
  7.     local Count = 1 / 255
  8.     --Red Count
  9.     local red = Count * RED
  10.     --Green Count
  11.     local green = Count * GREEN
  12.     --Blue Count
  13.     local blue = Count * BLUE
  14.     --Give Color3
  15.     local FColor = Color3.new(red,green,blue)
  16.     return FColor
  17. end
  18.  
  19. local Frame = Instance.new("Frame",ScreenGui)
  20. Frame.Position = UDim2.new(1 - (0.3/2),0,0,0)
  21. Frame.Size = UDim2.new(0.3/2,0,1.5/2,0)
  22. Frame.BackgroundColor3 = Color3.new(0.5,0.5,0.5)
  23. Frame.Active = true
  24. Frame.Selectable = true
  25. Frame.Draggable = true
  26.  
  27. local ScrollingFrame = Instance.new("ScrollingFrame",Frame)
  28. ScrollingFrame.Position = UDim2.new(0,0,0.1,0)
  29. ScrollingFrame.Size = UDim2.new(1,0,0.9,0)
  30. ScrollingFrame.BackgroundColor3 = Color3.new(1,1,1)
  31. ScrollingFrame.ScrollBarThickness = 3
  32. ScrollingFrame.CanvasSize = UDim2.new(1,0,7500,0)
  33.  
  34. added = 0
  35. addedSize = 0.05 / 7500
  36. function Add(Object,nr)
  37.     added = added + 1
  38.    
  39.     local OP = Object.Parent
  40.     local ON = Object.Name
  41.    
  42.     local TextButton = Instance.new("TextButton",ScrollingFrame)
  43.     TextButton.Text = ON
  44.     TextButton.Position = UDim2.new(0,0,(addedSize * added) - addedSize,0)
  45.     TextButton.Size = UDim2.new(1,0,addedSize,0)
  46.    
  47.     TextButton.BackgroundColor3 = rgb(45, 160, 255)
  48.     TextButton.MouseButton1Click:Connect(function()
  49.         if OP:FindFirstChild(ON) then
  50.             Open(Object)
  51.         end
  52.     end)
  53.    
  54.     if nr then
  55.         local TextButton2 = Instance.new("TextButton",TextButton)
  56.         TextButton2.Text = "Select"
  57.         TextButton2.Position = UDim2.new(1-0.3,0,0,0)
  58.         TextButton2.Size = UDim2.new(0.3,0,1,0)
  59.         TextButton2.BackgroundColor3 = rgb(45, 160, 255)
  60.         TextButton2.MouseButton1Click:Connect(function()
  61.             if OP:FindFirstChild(ON) then
  62.                 SelectionC = Object
  63.             end
  64.         end)
  65.  
  66.         local TextLabel2 = Instance.new("TextLabel",TextButton)
  67.         TextLabel2.Text = Object.ClassName
  68.         TextLabel2.Position = UDim2.new(0,0,0,0)
  69.         TextLabel2.Size = UDim2.new(0.3,0,1,0)
  70.         TextLabel2.BackgroundColor3 = rgb(45, 160, 255)
  71.     end
  72. end
  73.  
  74. function Open(Object)
  75.     ScrollingFrame.CanvasSize = UDim2.new(1,0,0,0)
  76.     ScrollingFrame.CanvasSize = UDim2.new(1,0,7500,0)
  77.     SelectionC = nil
  78.     added = 0
  79.     for i,v in pairs(ScrollingFrame:GetChildren()) do
  80.         v:Remove()
  81.     end
  82.     for i,v in pairs(Object:GetChildren()) do
  83.             Add(v,true)
  84.     end
  85.     if Object.Parent ~= game then
  86.         Add(Object.Parent,false)
  87.         Add(Workspace,false)
  88.     end
  89. end
  90.  
  91. local TextLabel = Instance.new("TextLabel",Frame)
  92. TextLabel.Text = "Vex Explorer V6"
  93. TextLabel.Size = UDim2.new(1,0,0.1,0)
  94. TextLabel.BackgroundColor3 = rgb(0, 140, 255)
  95. TextLabel.TextScaled = true
  96.  
  97. local Frame2 = Instance.new("Frame",Frame)
  98. Frame2.Position = UDim2.new(-0.1,-1,0.9,0)
  99. Frame2.Size = UDim2.new(0.1,0,0.1,0)
  100. Frame2.BackgroundColor3 = Color3.new(0.5,0.5,0.5)
  101.  
  102. local Frame2Button1 = Instance.new("TextButton",Frame2)
  103. Frame2Button1.Text = "X"
  104. Frame2Button1.Position = UDim2.new(0,0,0,0)
  105. Frame2Button1.Size = UDim2.new(1,0,0.5,0)
  106. Frame2Button1.BackgroundColor3 = rgb(255, 0, 0)
  107. Frame2Button1.MouseButton1Click:Connect(function()
  108.     if SelectionC ~= nil then
  109.         local ParentSC = SelectionC.Parent
  110.         SelectionC:Remove()
  111.         Open(ParentSC)
  112.     end
  113. end)
  114.  
  115. local Frame2Button2 = Instance.new("TextButton",Frame2)
  116. Frame2Button2.Text = "+"
  117. Frame2Button2.Position = UDim2.new(0,0,0.5,0)
  118. Frame2Button2.Size = UDim2.new(1,0,0.5,0)
  119. Frame2Button2.BackgroundColor3 = rgb(0, 255, 0)
  120. Frame2Button2.MouseButton1Click:Connect(function()
  121.     if SelectionC ~= nil then
  122.         local ParentSC = SelectionC.Parent
  123.         local CloneSC = SelectionC:Clone()
  124.         CloneSC.Parent = ParentSC
  125.         Open(ParentSC)
  126.         SelectionC = CloneSC
  127.     end
  128. end)
  129.  
  130. Open(workspace,false)
Advertisement
Add Comment
Please, Sign In to add comment