Advertisement
Guest User

Untitled

a guest
Mar 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.64 KB | None | 0 0
  1. TextProperties = {"ClassName", "Name", "Value", "Text", "Reflectance", "Transparency", "Heat", "TeamName", "WalkSpeed", "Health", "MaxHealth", "Size", "Position", "AccountAge", "RobloxLocked", "TeamColor", "userId", "Brightness", "Ambient", "TimeOfDay", "FieldOfView", "CameraType", "LinkedSource"}
  2.  
  3. BoolProperties = {"Anchored", "CanCollide", "Disabled", "Jump", "Sit", "Visible", "Enabled", "Locked", "FilteringEnabled", "StreamingEnabled", "GlobalShadows"}
  4.  
  5. BrickColorProperties = {"BrickColor", "Color", "TeamColor", "Texture", "Value"}
  6.  
  7. s = Instance.new("ScreenGui", game.CoreGui)
  8.  
  9. pgr = Instance.new("TextButton")
  10.  
  11. pgr.Parent = s
  12.  
  13. pgr.Size = UDim2.new(0,100,0,40)
  14.  
  15. pgr.Position = UDim2.new(0,30,0,440)
  16.  
  17. pgr.Text="Explorer"
  18.  
  19. pgr.BackgroundTransparency = 0.3
  20.  
  21. pgr.TextColor = BrickColor.new("White")
  22.  
  23. pgr.BackgroundColor = BrickColor.new("Really Black")
  24.  
  25. pgr.BorderColor = BrickColor.new("Black")
  26.  
  27. pgr.Font = "ArialBold"
  28.  
  29. pgr.FontSize = "Size14"
  30.  
  31. pgr.TextStrokeColor3 = Color3.new(0/0,0/0,0/0)
  32.  
  33. pgr.TextStrokeTransparency = 0.3
  34.  
  35. pgr.BorderSizePixel = 1
  36.  
  37. pgr.BorderColor = BrickColor.new("White")
  38.  
  39.  
  40.  
  41. if game.CoreGui:findFirstChild("Explorer") then
  42.  
  43. game.CoreGui:findFirstChild("Explorer"):Remove()
  44.  
  45. end
  46.  
  47.  
  48.  
  49. local Cloned
  50.  
  51. local Deleted
  52.  
  53. local DeleteParent
  54.  
  55. local Player
  56.  
  57. local Search
  58.  
  59. local ScriptSearch
  60.  
  61. local Gui
  62.  
  63. local Cloned = nil
  64.  
  65. local Deleted = nil
  66.  
  67. local DeleteParent = nil
  68.  
  69. local Current = 0
  70.  
  71. local CurrentOption = 0
  72.  
  73.  
  74.  
  75. function Clear()
  76.  
  77. if Gui then
  78.  
  79. Gui:Remove()
  80.  
  81. end
  82.  
  83. Current = 0
  84.  
  85. CurrentOption = 0
  86.  
  87. end
  88.  
  89.  
  90.  
  91. function AddButton(N, Function, Color, Copy)
  92.  
  93. if not N then
  94.  
  95. error("RenderButton - No Name Specified")
  96.  
  97. end
  98.  
  99. if not Function then
  100.  
  101. error("RenderButton - No Function Specified")
  102.  
  103. end
  104.  
  105. if not Color then
  106.  
  107. Color = Color3.new(1, 1, 1)
  108.  
  109. end
  110.  
  111. if Copy == nil then
  112.  
  113. Copy = true
  114.  
  115. end
  116.  
  117. P = Instance.new("TextButton")
  118.  
  119. if Copy then
  120.  
  121. P.Size = UDim2.new(0, 110, 0, 20)
  122.  
  123. else
  124.  
  125. P.Size = UDim2.new(0, 130, 0, 20)
  126.  
  127. end
  128.  
  129. P.Text = N.Name
  130.  
  131. P.Name = N.Name
  132.  
  133. P.Parent = Gui
  134.  
  135. P.BackgroundColor3 = Color
  136.  
  137. P.TextColor3 = Color3.new(0, 0, 0)
  138.  
  139. P.BackgroundTransparency = 0.5
  140.  
  141. P.Position = UDim2.new(0, ((math.modf(Current/30))*150)+300, 0, 50+(20*((Current%30)-1)))
  142.  
  143. P.MouseButton1Click:connect(function()
  144.  
  145. Function(P)
  146.  
  147. end)
  148.  
  149. D = Instance.new("TextButton")
  150.  
  151. D.Size = UDim2.new(0, 20, 0, 20)
  152.  
  153. D.Text = "X"
  154.  
  155. D.Name = N.Name
  156.  
  157. D.Parent = Gui
  158.  
  159. D.BackgroundColor3 = Color3.new(1, 0, 0)
  160.  
  161. D.TextColor3 = Color3.new(0, 0, 0)
  162.  
  163. D.BackgroundTransparency = 0.5
  164.  
  165. D.Position = UDim2.new(0, ((math.modf(Current/30))*150)+300+130, 0, 50+(20*((Current%30)-1)))
  166.  
  167. D.MouseButton1Click:connect(function()
  168.  
  169. Deleted = N
  170.  
  171. DeleteParent = N.Parent
  172.  
  173. N.Parent = nil
  174.  
  175. Clear()
  176.  
  177. Search(DeleteParent)
  178.  
  179. end)
  180.  
  181. if Copy then
  182.  
  183. C = Instance.new("TextButton")
  184.  
  185. C.Size = UDim2.new(0, 20, 0, 20)
  186.  
  187. C.Text = "C"
  188.  
  189. C.Name = N.Name
  190.  
  191. C.Parent = Gui
  192.  
  193. C.BackgroundColor3 = Color3.new(0, 1, 0.5)
  194.  
  195. C.TextColor3 = Color3.new(0, 0, 0)
  196.  
  197. C.BackgroundTransparency = 0.5
  198.  
  199. C.Position = UDim2.new(0, ((math.modf(Current/30))*150)+300+110, 0, 50+(20*((Current%30)-1)))
  200.  
  201. C.MouseButton1Click:connect(function()
  202.  
  203. Cloned = N
  204.  
  205. Clear()
  206.  
  207. Search(N.Parent)
  208.  
  209. end)
  210.  
  211. end
  212.  
  213. Current = Current + 1
  214.  
  215. return P
  216.  
  217. end
  218.  
  219.  
  220.  
  221. function AddOption(N, Function, Color, Text)
  222.  
  223. if not N then
  224.  
  225. error("RenderButton - No Name Specified")
  226.  
  227. end
  228.  
  229. if not Color then
  230.  
  231. Color = Color3.new(1, 1, 1)
  232.  
  233. end
  234.  
  235. if Text == nil then
  236.  
  237. Text = false
  238.  
  239. end
  240.  
  241. if Text then
  242.  
  243. P = Instance.new("TextBox")
  244.  
  245. else
  246.  
  247. P = Instance.new("TextButton")
  248.  
  249. end
  250.  
  251. P.Text = N
  252.  
  253. P.Name = N
  254.  
  255. P.Parent = Gui
  256.  
  257. P.BackgroundColor3 = Color
  258.  
  259. P.TextColor3 = Color3.new(0, 0, 0)
  260.  
  261. P.BackgroundTransparency = 0.5
  262.  
  263. P.Size = UDim2.new(0, 150, 0, 20)
  264.  
  265. P.Position = UDim2.new(0, ((math.modf(CurrentOption/30))*150)+150, 0, 50+(20*((CurrentOption%30)-1)))
  266.  
  267. if not Text and Function then
  268.  
  269. P.MouseButton1Click:connect(function() Function(P) end)
  270.  
  271. end
  272.  
  273. CurrentOption = CurrentOption + 1
  274.  
  275. return P
  276.  
  277. end
  278.  
  279.  
  280.  
  281. function AddTextOption(Obj, Prop)
  282.  
  283. local Ob = Obj
  284.  
  285. local Pro = Prop
  286.  
  287. if type(Ob[Pro]) == "number" or type(Ob[Pro]) == "string" then
  288.  
  289. CurrentOption = CurrentOption + 1
  290.  
  291. local T = AddOption(Ob[Pro], nil, Color3.new(0.1, 0.4, 0.1), true)
  292.  
  293. CurrentOption = CurrentOption - 2
  294.  
  295. local O = AddOption("Change "..Pro..":", function() Ob[Pro] = T.Text end, Color3.new(0.1, 0.8, 0.1), false)
  296.  
  297. CurrentOption = CurrentOption + 1
  298.  
  299. end
  300.  
  301. end
  302.  
  303.  
  304.  
  305. function AddBrickColorOption(Obj, Prop)
  306.  
  307. local Ob = Obj
  308.  
  309. local Pro = Prop
  310.  
  311. if BrickColor.new(tostring(Ob[Pro])) == Ob[Pro] then
  312.  
  313. CurrentOption = CurrentOption + 1
  314.  
  315. local T = AddOption(tostring(Ob[Pro]), nil, Color3.new(0.1, 0.4, 0.1), true)
  316.  
  317. CurrentOption = CurrentOption - 2
  318.  
  319. local O = AddOption("Change "..Pro..":", function() Ob[Pro] = BrickColor.new(T.Text) end, Color3.new(0.1, 0.8, 0.1), false)
  320.  
  321. CurrentOption = CurrentOption + 1
  322.  
  323. end
  324.  
  325. end
  326.  
  327.  
  328.  
  329. function AddBoolOption(Obj, Prop)
  330.  
  331. local Ob = Obj
  332.  
  333. local Pro = Prop
  334.  
  335. if type(Ob[Pro]) == "boolean" then
  336.  
  337. local O = AddOption(Pro..": "..tostring(Ob[Pro]), nil, Color3.new(0.1, 0.8, 0.1), false)
  338.  
  339. O.MouseButton1Click:connect(function()
  340.  
  341. if Ob[Pro] then
  342.  
  343. Ob[Pro] = false
  344.  
  345. O.Text = Pro..": false"
  346.  
  347. else
  348.  
  349. Ob[Pro] = true
  350.  
  351. O.Text = Pro..": true"
  352.  
  353. end
  354.  
  355. end)
  356.  
  357. end
  358.  
  359. end
  360.  
  361.  
  362.  
  363. function TestProperty(Obj, Property)
  364.  
  365. Success = pcall(function()
  366.  
  367. if Obj[Property] then
  368.  
  369. return
  370.  
  371. end
  372.  
  373. end)
  374.  
  375. return Success
  376.  
  377. end
  378.  
  379.  
  380.  
  381. function LoadOptions(Object)
  382.  
  383. for Num, Prop in pairs(TextProperties) do
  384.  
  385. if TestProperty(Object, Prop) then
  386.  
  387. AddTextOption(Object, Prop)
  388.  
  389. end
  390.  
  391. end
  392.  
  393. for Num, Prop in pairs(BoolProperties) do
  394.  
  395. if TestProperty(Object, Prop) then
  396.  
  397. AddBoolOption(Object, Prop)
  398.  
  399. end
  400.  
  401. end
  402.  
  403. for Num, Prop in pairs(BrickColorProperties) do
  404.  
  405. if TestProperty(Object, Prop) then
  406.  
  407. AddBrickColorOption(Object, Prop)
  408.  
  409. end
  410.  
  411. end
  412.  
  413. end
  414.  
  415.  
  416.  
  417. function Search(Object)
  418.  
  419. Gui = Instance.new("ScreenGui")
  420.  
  421. Gui.Parent = game.CoreGui
  422.  
  423. Gui.Name = "Explorer"
  424.  
  425. if Object ~= game then
  426.  
  427. AddOption("Back", function()
  428.  
  429. Clear();
  430.  
  431. Search(Object.Parent)
  432.  
  433. end, Color3.new(0.5, 1, 1), false)
  434.  
  435. end
  436.  
  437. AddOption("Reload", function() Clear(); Search(Object); end, Color3.new(0.2, 1, 0.2), false)
  438.  
  439. if Cloned then
  440.  
  441. AddOption("Paste", function() Cloned:Clone().Parent = Object; Clear(); Search(Object); end, Color3.new(0.5, 1, 1), false)
  442.  
  443. end
  444.  
  445. if Deleted then
  446.  
  447. AddOption("Undo", function() Deleted.Parent = DeleteParent; Deleted = nil; DeletedParent = nil; Clear(); Search(Object); end, Color3.new(1, 0.6, 0.1), false)
  448.  
  449. end
  450.  
  451. if Object:IsA("Player") then
  452.  
  453. AddOption("Goto Character", function() Clear(); if Object.Character then Search(Object.Character); end end, Color3.new(1, 1, 1), false)
  454.  
  455. end
  456.  
  457. if Object:IsA("LocalScript") then
  458.  
  459. AddOption("EditScript", function() Clear(); ScriptSearch(Object); end, Color3.new(1, 1, 1), false)
  460.  
  461. end
  462.  
  463. if Object:IsA("Terrain") then
  464.  
  465. AddOption("Clear", function() Object:Clear(); end, Color3.new(1, 1, 1), false)
  466.  
  467. end
  468.  
  469. LoadOptions(Object)
  470.  
  471. AddOption("Close", Clear, Color3.new(1, 0.2, 0), false)
  472.  
  473. if not Object:IsA("Workspace") or not Object:IsA("Player") then
  474.  
  475. for Num, Obj in pairs(Object:GetChildren()) do
  476.  
  477. --if not Obj:IsA("BasePart") or not Object.Parent == game.Workspace then
  478.  
  479. if true then
  480.  
  481. if Obj:IsA("LocalScript") then
  482.  
  483. AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(1, 0, 0), true)
  484.  
  485. elseif Obj:IsA("Script") or Obj:IsA("StarterScript") or Obj:IsA("CoreScript") then
  486.  
  487. AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(0.5, 0.5, 0.8), true)
  488.  
  489. elseif Obj.Parent == game then
  490.  
  491. AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(1, 1, 1), false)
  492.  
  493. else
  494.  
  495. AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(1, 1, 1), true)
  496.  
  497. end
  498.  
  499. end
  500.  
  501. end
  502.  
  503. end
  504.  
  505. function MoveUp(Place, Amount)
  506.  
  507. for i,v in pairs(Place:GetChildren()) do
  508.  
  509. if v:IsA("TextLabel") or v:IsA("TextBox") then
  510.  
  511. v.Position = v.Position + UDim2.new(0,0,0,-Amount)
  512.  
  513. end
  514.  
  515. end
  516.  
  517. end
  518.  
  519. function MoveDown(Place, Amount)
  520.  
  521. for i,v in pairs(Place:GetChildren()) do
  522.  
  523. if v:IsA("TextLabel") or v:IsA("TextBox") then
  524.  
  525. v.Position = v.Position + UDim2.new(0,0,0,Amount)
  526.  
  527. end
  528.  
  529. end
  530.  
  531. end
  532.  
  533. i=0
  534.  
  535. function ScriptSearch(S)
  536.  
  537. Script2 = S
  538.  
  539. Script = Script2.Source
  540.  
  541. Table = {}
  542.  
  543. Enabled = true
  544.  
  545. Gui = Instance.new("ScreenGui")
  546.  
  547. Gui.Parent = game.CoreGui
  548.  
  549. Gui.Name = "Explorer"
  550.  
  551. while Enabled do
  552.  
  553. Start, End = string.find(Script, '\n')
  554.  
  555. print(Start, End)
  556.  
  557. if Start and End then
  558.  
  559. table.insert(Table, string.sub(Script, 1, End))
  560.  
  561. New = string.sub(Script, End+1, string.len(Script))
  562.  
  563. Script = New
  564.  
  565. else
  566.  
  567. Enabled = false
  568.  
  569. table.insert(Table, string.sub(Script, 1, End))
  570.  
  571. print("Finished")
  572.  
  573. end
  574.  
  575. end
  576.  
  577. P = Instance.new("TextLabel")
  578.  
  579. P.Size = UDim2.new(0, 500, 0, 20)
  580.  
  581. P.Text = Script2.Name
  582.  
  583. P.Name = "Script Line"
  584.  
  585. P.Parent = Gui
  586.  
  587. P.BackgroundColor3 = Color3.new(1, 1, 1)
  588.  
  589. P.TextColor3 = Color3.new(0, 0, 0)
  590.  
  591. P.BackgroundTransparency = 0.5
  592.  
  593. P.Position = UDim2.new(0.5, -250, 0, 150+(20*(i-1)))
  594.  
  595. P.TextXAlignment = "Left"
  596.  
  597. i=i+1
  598.  
  599. New = {}
  600.  
  601. for I,Val in pairs(Table) do
  602.  
  603. print(Val)
  604.  
  605. P = Instance.new("TextBox")
  606.  
  607. P.ClearTextOnFocus = false
  608.  
  609. P.Size = UDim2.new(0, 500, 0, 20)
  610.  
  611. P.Text = Val
  612.  
  613. P.Name = "Script Line"
  614.  
  615. P.Parent = Gui
  616.  
  617. P.BackgroundColor3 = Color3.new(1, 1, 1)
  618.  
  619. P.TextColor3 = Color3.new(0, 0, 0)
  620.  
  621. P.BackgroundTransparency = 0.5
  622.  
  623. P.Position = UDim2.new(0.5, -250, 0, 150+(20*(i-1)))
  624.  
  625. P.TextXAlignment = "Left"
  626.  
  627. table.insert(New, P)
  628.  
  629. i=i+1
  630.  
  631. end
  632.  
  633. i=1
  634.  
  635. P = Instance.new("TextButton")
  636.  
  637. P.Size = UDim2.new(0, 20, 0, 20)
  638.  
  639. P.Text = "^"
  640.  
  641. P.Name = "Scroll"
  642.  
  643. P.Parent = Gui
  644.  
  645. P.BackgroundColor3 = Color3.new(1, 1, 1)
  646.  
  647. P.TextColor3 = Color3.new(0, 0, 0)
  648.  
  649. P.BackgroundTransparency = 0.5
  650.  
  651. P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1)))
  652.  
  653. P.MouseButton1Click:connect(function()
  654.  
  655. MoveUp(Gui, -20)
  656.  
  657. end)
  658.  
  659. i=i+1
  660.  
  661. P = Instance.new("TextButton")
  662.  
  663. P.Size = UDim2.new(0, 20, 0, 20)
  664.  
  665. P.Text = "v"
  666.  
  667. P.Name = "Scroll"
  668.  
  669. P.Parent = Gui
  670.  
  671. P.BackgroundColor3 = Color3.new(1, 1, 1)
  672.  
  673. P.TextColor3 = Color3.new(0, 0, 0)
  674.  
  675. P.BackgroundTransparency = 0.5
  676.  
  677. P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1)))
  678.  
  679. P.MouseButton1Click:connect(function()
  680.  
  681. MoveDown(Gui, -20)
  682.  
  683. end)
  684.  
  685. i=i+1
  686.  
  687. P = Instance.new("TextButton")
  688.  
  689. P.Size = UDim2.new(0, 20, 0, 20)
  690.  
  691. P.Text = "^^"
  692.  
  693. P.Name = "Scroll"
  694.  
  695. P.Parent = Gui
  696.  
  697. P.BackgroundColor3 = Color3.new(1, 1, 1)
  698.  
  699. P.TextColor3 = Color3.new(0, 0, 0)
  700.  
  701. P.BackgroundTransparency = 0.5
  702.  
  703. P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1)))
  704.  
  705. P.MouseButton1Click:connect(function()
  706.  
  707. MoveUp(Gui, -200)
  708.  
  709. end)
  710.  
  711. i=i+1
  712.  
  713. P = Instance.new("TextButton")
  714.  
  715. P.Size = UDim2.new(0, 20, 0, 20)
  716.  
  717. P.Text = "vv"
  718.  
  719. P.Name = "Scroll"
  720.  
  721. P.Parent = Gui
  722.  
  723. P.BackgroundColor3 = Color3.new(1, 1, 1)
  724.  
  725. P.TextColor3 = Color3.new(0, 0, 0)
  726.  
  727. P.BackgroundTransparency = 0.5
  728.  
  729. P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1)))
  730.  
  731. P.MouseButton1Click:connect(function()
  732.  
  733. MoveDown(Gui, -200)
  734.  
  735. end)
  736.  
  737. i=i+1
  738.  
  739. P = Instance.new("TextButton")
  740.  
  741. P.Size = UDim2.new(0, 20, 0, 20)
  742.  
  743. P.Text = "S"
  744.  
  745. P.Name = "Save"
  746.  
  747. P.Parent = Gui
  748.  
  749. P.BackgroundColor3 = Color3.new(0, 1, 0)
  750.  
  751. P.TextColor3 = Color3.new(0, 0, 0)
  752.  
  753. P.BackgroundTransparency = 0.5
  754.  
  755. P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1)))
  756.  
  757. P.MouseButton1Click:connect(function()
  758.  
  759. StringS = ""
  760.  
  761. for Num, Obj in pairs(New) do
  762.  
  763. StringS = StringS..Obj.Text..'\n'
  764.  
  765. end
  766.  
  767. S.Source = StringS
  768.  
  769. S.Disabled = true
  770.  
  771. S.Disabled = false
  772.  
  773. end)
  774.  
  775. i=i+1
  776.  
  777. P = Instance.new("TextButton")
  778.  
  779. P.Size = UDim2.new(0, 20, 0, 20)
  780.  
  781. P.Text = "x"
  782.  
  783. P.Name = "Back"
  784.  
  785. P.Parent = Gui
  786.  
  787. P.BackgroundColor3 = Color3.new(1, 0.2, 0)
  788.  
  789. P.TextColor3 = Color3.new(0, 0, 0)
  790.  
  791. P.BackgroundTransparency = 0.5
  792.  
  793. P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1)))
  794.  
  795. P.MouseButton1Click:connect(function()
  796.  
  797. Clear()
  798.  
  799. i=0
  800.  
  801. Search(S)
  802.  
  803. end)
  804.  
  805. i=i+1
  806.  
  807. end
  808.  
  809. end
  810.  
  811.  
  812.  
  813. pgr.MouseButton1Click:connect(function()
  814.  
  815. Clear()
  816.  
  817. Search(game)
  818.  
  819. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement