koreanhackerman

DEX Explorer Leak

Dec 1st, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.32 KB | None | 0 0
  1. if game.CoreGui:findFirstChild("Explorer") then
  2.   game.CoreGui:findFirstChild("Explorer"):remove();
  3. end
  4.  
  5. local TextProperties = {"BorderSizePixel", "BackgroundTransparency", "Gravity", "ClassName", "Name", "Value", "Text", "Reflectance", "Transparency", "Heat", "TeamName", "WalkSpeed", "Health", "MaxHealth", "Size", "Position", "AccountAge", "RobloxLocked", "TeamColor", "userId", "Brightness", "Ambient", "TimeOfDay", "FieldOfView", "CameraType", "LinkedSource"}
  6. local BoolProperties = {"Anchored", "CanCollide", "Disabled", "Jump", "Sit", "Visible", "Enabled", "Locked", "FilteringEnabled", "StreamingEnabled", "GlobalShadows"}
  7. local BrickColorProperties = {"BrickColor", "BackgroundColor3", "BorderColor3", "Color", "TeamColor", "Texture", "Value"}
  8.  
  9. local ScreenGui = Instance.new("ScreenGui", game.CoreGui)
  10. ScreenGui.Name = 'Explorer'
  11. local Button = Instance.new("TextButton")
  12. Button.Parent = ScreenGui
  13. Button.Size = UDim2.new(0,100,0,20)
  14. Button.Position = UDim2.new(0,30,0,440)
  15. Button.Text = 'Open Explorer'
  16. Button.BackgroundTransparency = 0.3
  17. Button.TextColor3 = Color3.new(255/255,255/255,255/255)
  18. Button.BackgroundColor3 = Color3.new(85/255,170/255,255/255)
  19. Button.Font = Enum.Font.SciFi
  20. Button.FontSize = Enum.FontSize.Size14;
  21. Button.BorderSizePixel = 0
  22.  
  23.  
  24.  
  25. local Cloned
  26. local Deleted
  27. local DeleteParent
  28. local Player
  29. local Search
  30. local ScriptSearch
  31. local Gui
  32. local Cloned = nil
  33. local Deleted = nil
  34. local DeleteParent = nil
  35. local Current = 0
  36. local CurrentOption = 0
  37.  
  38. function Clear()
  39.   if Gui then
  40.       Gui:Remove()
  41.   end
  42.   Current = 0
  43.   CurrentOption = 0
  44. end
  45.  
  46. function AddButton(N, Function, Color, Copy)
  47.   if not N then
  48.       error("RenderButton - No Name Specified")
  49.   end
  50.   if not Function then
  51.       error("RenderButton - No Function Specified")
  52.   end
  53.   if not Color then
  54.       Color = Color3.new(1, 1, 1)
  55.   end
  56.   if Copy == nil then
  57.       Copy = true
  58.   end
  59.   P = Instance.new("TextButton")
  60.   if Copy then
  61.       P.Size = UDim2.new(0, 110, 0, 20)
  62.   else
  63.       P.Size = UDim2.new(0, 130, 0, 20)
  64.   end
  65.   P.Text = N.Name
  66.   P.Name = N.Name
  67.   P.Parent = Gui
  68.   P.BackgroundColor3 = Color3.new(85/255,170/255,255/255)
  69.   P.BorderColor3 = Color3.new(85/255,170/255,255/255)
  70.   P.BorderSizePixel = 0
  71.   P.TextColor3 = Color3.new(1,1,1)
  72.   P.Font = Enum.Font.SciFi
  73.   P.FontSize = Enum.FontSize.Size14;
  74.   P.BackgroundTransparency = 0.5
  75.   P.Position = UDim2.new(0, ((math.modf(Current/30))*150)+300, 0, 50+(20*((Current%30)-1)))
  76.   P.MouseButton1Click:connect(function()
  77.       Function(P)
  78.   end)
  79.   local D = Instance.new("TextButton")
  80.   D.Size = UDim2.new(0, 20, 0, 20)
  81.   D.Text = "X"
  82.   D.Name = N.Name
  83.   D.Parent = Gui
  84.   D.BackgroundColor3 = Color3.new(1,0,0)
  85.   D.BorderColor3 = Color3.new(1,0,0)
  86.   D.BorderSizePixel = 0
  87.   D.TextColor3 = Color3.new(1,1,1)
  88.   D.Font = Enum.Font.SciFi
  89.   D.FontSize = Enum.FontSize.Size14;
  90.   D.BackgroundTransparency = 0.5
  91.   D.Position = UDim2.new(0, ((math.modf(Current/30))*150)+300+130, 0, 50+(20*((Current%30)-1)))
  92.   D.MouseButton1Click:connect(function()
  93.       Deleted = N
  94.       DeleteParent = N.Parent
  95.       N.Parent = nil
  96.       Clear()
  97.       Search(DeleteParent)
  98.   end)
  99.   if Copy then
  100.       local C = Instance.new("TextButton")
  101.       C.Size = UDim2.new(0, 20, 0, 20)
  102.       C.Text = "C"
  103.       C.Name = N.Name
  104.       C.Parent = Gui
  105.       C.BackgroundColor3 = Color3.new(85/255,170/255,255/255)
  106.       C.BorderColor3 = Color3.new(85/255,170/255,255/255)
  107.   C.BorderSizePixel = 0
  108.       C.TextColor3 = Color3.new(1,1,1)
  109.       C.Font = Enum.Font.SciFi
  110.     C.FontSize = Enum.FontSize.Size14;
  111.       C.BackgroundTransparency = 0.5
  112.       C.Position = UDim2.new(0, ((math.modf(Current/30))*150)+300+110, 0, 50+(20*((Current%30)-1)))
  113.       C.MouseButton1Click:connect(function()
  114.           Cloned = N
  115.           Clear()
  116.           Search(N.Parent)
  117.       end)
  118.   end
  119.   Current = Current + 1
  120.   return P
  121. end
  122.  
  123. function AddOption(N, Function, Color, Text)
  124.   Color = nil;
  125.   if not N then
  126.       N = "No Name Specified";
  127.   end
  128.   if Text == nil then
  129.       Text = false
  130.   end
  131.   if Text then
  132.       P = Instance.new("TextBox")
  133.   else
  134.       P = Instance.new("TextButton")
  135.   end
  136.   P.Text = N
  137.   P.Name = N
  138.   P.Parent = Gui
  139.   P.BackgroundColor3 = Color3.new(85/255,170/255,255/255)
  140.   P.BorderColor3 = Color3.new(85/255,170/255,255/255)
  141.   P.TextColor3 = Color3.new(1,1,1)
  142.   P.BorderSizePixel = 0
  143.   P.Font = Enum.Font.SciFi
  144.   P.FontSize = Enum.FontSize.Size14;
  145.   P.BackgroundTransparency = 0.5
  146.   P.Size = UDim2.new(0, 150, 0, 20)
  147.   P.Position = UDim2.new(0, ((math.modf(CurrentOption/30))*150)+150, 0, 50+(20*((CurrentOption%30)-1)))
  148.   if not Text and Function then
  149.       P.MouseButton1Click:connect(function() Function(P) end)
  150.   end
  151.   CurrentOption = CurrentOption + 1
  152.   return P
  153. end
  154.  
  155. function AddTextOption(Obj, Prop)
  156.   local Ob = Obj
  157.   local Pro = Prop
  158.   if type(Ob[Pro]) == "number" or type(Ob[Pro]) == "string" then
  159.       CurrentOption = CurrentOption + 1
  160.       local T = AddOption(Ob[Pro], nil, Color3.new(0.1, 0.4, 0.1), true)
  161.       CurrentOption = CurrentOption - 2
  162.       local O = AddOption("Change "..Pro..":", function() Ob[Pro] = T.Text end, Color3.new(0.1, 0.8, 0.1), false)
  163.       CurrentOption = CurrentOption + 1
  164.   end
  165. end
  166.  
  167. function AddBrickColorOption(Obj, Prop)
  168.   local Ob = Obj
  169.   local Pro = Prop
  170.   if BrickColor.new(tostring(Ob[Pro])) == Ob[Pro] then
  171.       CurrentOption = CurrentOption + 1
  172.       local T = AddOption(tostring(Ob[Pro]), nil, Color3.new(0.1, 0.4, 0.1), true)
  173.       CurrentOption = CurrentOption - 2
  174.       local O = AddOption("Change "..Pro..":", function() Ob[Pro] = BrickColor.new(T.Text) end, Color3.new(0.1, 0.8, 0.1), false)
  175.       CurrentOption = CurrentOption + 1
  176.   end
  177. end
  178.  
  179. function AddBoolOption(Obj, Prop)
  180.   local Ob = Obj
  181.   local Pro = Prop
  182.   if type(Ob[Pro]) == "boolean" then
  183.       local O = AddOption(Pro..": "..tostring(Ob[Pro]), nil, Color3.new(0.1, 0.8, 0.1), false)
  184.       O.MouseButton1Click:connect(function()
  185.           if Ob[Pro] then
  186.               Ob[Pro] = false
  187.               O.Text = Pro..": false"
  188.           else
  189.               Ob[Pro] = true
  190.               O.Text = Pro..": true"
  191.           end
  192.       end)
  193.   end
  194. end
  195.  
  196. function TestProperty(Obj, Property)
  197.   Success = pcall(function()
  198.       if Obj[Property] then
  199.           return
  200.       end
  201.   end)
  202.   return Success
  203. end
  204.  
  205. function LoadOptions(Object)
  206.   for Num, Prop in pairs(TextProperties) do
  207.       if TestProperty(Object, Prop) then
  208.           AddTextOption(Object, Prop)
  209.       end
  210.   end
  211.   for Num, Prop in pairs(BoolProperties) do
  212.       if TestProperty(Object, Prop) then
  213.           AddBoolOption(Object, Prop)
  214.       end
  215.   end
  216.   for Num, Prop in pairs(BrickColorProperties) do
  217.       if TestProperty(Object, Prop) then
  218.           AddBrickColorOption(Object, Prop)
  219.       end
  220.   end
  221. end
  222.  
  223. function Search(Object)
  224.   Gui = Instance.new("ScreenGui")
  225.   Gui.Parent = game.CoreGui
  226.   Gui.Name = "Explorer"
  227.   if Object ~= game then
  228.       AddOption("Back", function()
  229.           Clear();
  230.           Search(Object.Parent)
  231.       end, Color3.new(0.5, 1, 1), false)
  232.   end
  233.   AddOption("Reload", function() Clear(); Search(Object); end, Color3.new(0.2, 1, 0.2), false)
  234.   if Cloned then
  235.       AddOption("Paste", function() Cloned:Clone().Parent = Object; Clear(); Search(Object); end, Color3.new(0.5, 1, 1), false)
  236.   end
  237.   if Deleted then
  238.       AddOption("Undo", function() Deleted.Parent = DeleteParent; Deleted = nil; DeletedParent = nil; Clear(); Search(Object); end, Color3.new(1, 0.6, 0.1), false)
  239.   end
  240.   if Object:IsA("Player") then
  241. AddOption("Kill Player", function() if Object.Character:FindFirstChild('Humanoid') then Object.Character.Humanoid.Health = 0; end end)  
  242.    AddOption("Goto  Character", function() Clear(); if Object.Character then Search(Object.Character); end end, Color3.new(1, 1, 1), false)
  243.   end
  244.   if Object:IsA("Terrain") then
  245.       AddOption("Clear", function() Object:Clear(); end, Color3.new(1, 1, 1), false)
  246.   end
  247.   LoadOptions(Object)
  248.   AddOption("Close", Clear, Color3.new(1, 0.2, 0), false)
  249.   if not Object:IsA("Workspace") or not Object:IsA("Player") then
  250.       for Num, Obj in pairs(Object:GetChildren()) do
  251.           if true then
  252.               if Obj:IsA("LocalScript") then
  253.                   AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(1, 0, 0), true)
  254.               elseif Obj:IsA("Script") or Obj:IsA("StarterScript") or Obj:IsA("CoreScript") then
  255.                   AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(0.5, 0.5, 0.8), true)
  256.               elseif Obj.Parent == game then
  257.                   AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(1, 1, 1), false)
  258.               else
  259.                   AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(1, 1, 1), true)
  260.               end
  261.           end
  262.       end
  263.   end
  264.   local function MoveUp(Place, Amount)
  265.       for i,v in pairs(Place:GetChildren()) do
  266.           if v:IsA("TextLabel") or v:IsA("TextBox") then
  267.               v.Position = v.Position + UDim2.new(0,0,0,-Amount)
  268.           end
  269.       end
  270.   end
  271.   local function MoveDown(Place, Amount)
  272.       for i,v in pairs(Place:GetChildren()) do
  273.           if v:IsA("TextLabel") or v:IsA("TextBox") then
  274.               v.Position = v.Position + UDim2.new(0,0,0,Amount)
  275.           end
  276.       end
  277.   end
  278.   i=0;
  279. end
  280.  
  281. Button.MouseButton1Click:connect(function()
  282.   Clear()
  283.   Search(game)
  284. end)
Add Comment
Please, Sign In to add comment