HenloMyDude

my explorer (not very harmful)

Oct 25th, 2019
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1.  
  2. plr = owner
  3. plrgui = plr.PlayerGui
  4. char = plr.Character
  5. toexplore = "Workspace"
  6. toexplore2 = nil
  7. exploringn = nil
  8.  
  9. local gui = Instance.new("ScreenGui",plrgui)
  10. gui.Name = "youngmacka123BadlyMadeExplorerExploit"
  11. gui.Enabled = true
  12.  
  13. local scroll = Instance.new("ScrollingFrame",gui)
  14. scroll.Size = UDim2.new(0, 220, 0, 700)
  15.  
  16. function createtext(text, position)
  17. local thing = Instance.new("TextLabel",scroll)
  18. thing.Text = text
  19. thing.TextScaled = true
  20. thing.Position = position
  21. thing.BackgroundTransparency = 0
  22. thing.BorderSizePixel = 1
  23. thing.BorderMode = "Outline"
  24. thing.Size = UDim2.new(0, 200, 0, 50)
  25. return thing
  26. end
  27.  
  28. function createbutton(text, position)
  29. local thing = Instance.new("TextButton",scroll)
  30. thing.Text = text
  31. thing.TextScaled = true
  32. thing.Position = position
  33. thing.BackgroundTransparency = 0
  34. thing.BorderSizePixel = 1
  35. thing.BorderMode = "Outline"
  36. thing.Size = UDim2.new(0, 200, 0, 50)
  37. thing.MouseButton1Click:connect(function()
  38. thing:Destroy()
  39. exploring:FindFirstChild(thing.Text):Destroy()
  40. refreshexplore(exploring)
  41. end)
  42. return thing
  43. end
  44.  
  45. function createbox(text, position)
  46. local thing = Instance.new("TextBox",scroll)
  47. thing.Text = text
  48. thing.TextScaled = true
  49. thing.Position = position
  50. thing.BackgroundTransparency = 0
  51. thing.BorderSizePixel = 1
  52. thing.BorderMode = "Outline"
  53. thing.Size = UDim2.new(0, 200, 0, 50)
  54. return thing
  55. end
  56.  
  57. exploring = game:FindFirstChild(toexplore)
  58. last = "a"
  59. for _,v in pairs (exploring:GetChildren()) do
  60. if last == "a" then
  61. local text = createbutton(v.Name, UDim2.new(0, 0, 0, 0))
  62. last = text
  63. else
  64. local newtext = createbutton(v.Name, last.Position + UDim2.new(0, 0, 0.025, 0))
  65. last = newtext
  66. end
  67. end
  68.  
  69. function refreshexplore(exp)
  70. scroll:ClearAllChildren()
  71. last = "a"
  72. for _,v in pairs (exp:GetChildren()) do
  73. if last == "a" then
  74. local text = createbutton(v.Name, UDim2.new(0, 0, 0, 0))
  75. last = text
  76. else
  77. local newtext = createbutton(v.Name, last.Position + UDim2.new(0, 0, 0.025, 0))
  78. last = newtext
  79. end
  80. end
  81. end
  82.  
  83. plr.Chatted:connect(function(message)
  84. if message:sub(1, 7) == "/e exp1" then
  85. toexplore = message:sub(9)
  86. exploring = game:FindFirstChild(toexplore)
  87. refreshexplore(exploring)
  88. end
  89. if message:sub(1, 7) == "/e exp2" then
  90. toexplore2 = message:sub(9)
  91. exploring = game:FindFirstChild(toexplore):FindFirstChild(toexplore2)
  92. refreshexplore(exploring)
  93. end
  94. if message:sub(1, 7) == "/e exp3" then
  95. toexplore2 = message:sub(9)
  96. exploringn = exploring:FindFirstChild(toexplore2)
  97. refreshexplore(exploringn)
  98. end
  99. end)
Add Comment
Please, Sign In to add comment