Advertisement
Godofadmin1337

Explorer that actually works c:

Mar 20th, 2017
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.19 KB | None | 0 0
  1. local name = "Godofadmin1337"
  2. --Change Godofadmin1337 to your name above this line!
  3.  
  4.  
  5.  
  6.  
  7.  
  8. repeat wait() until #Game.Players:GetChildren(
  9. ) > 0
  10.  
  11. local char = Game.Players:FindFirstChild(name) or (Game.Players:GetChildren(
  12. )[1].Name:sub(1,6) == "Player" and Game.Players:GetChildren(
  13. )[1]
  14. )
  15. if not char then return end
  16. local current = Workspace
  17. local cp = 0
  18. local fontcolor = Color3.new(1,1,1)
  19. local bordercolor = Color3.new(1,0,0)
  20. local backgroundcolor = Color3.new(0,0,0)
  21. local backgroundtrans = .35
  22. local copy = nil
  23. local sP = {
  24. "Name";
  25. "ClassName";
  26. "BrickColor";
  27. "Position"
  28. }
  29.  
  30. local sg = Instance.new("ScreenGui")
  31. sg.Parent = char.PlayerGui
  32.  
  33. local ok = Instance.new("TextButton", sg)
  34. ok.Size = UDim2.new(.6,0,.05,0)
  35. ok.Position = UDim2.new(.2,0,.6,0)
  36. ok.FontSize = "Size18"
  37. ok.Text = "Accept"
  38. ok.TextColor3 = Color3.new(1,1,1)
  39. ok.Style = "RobloxButton"
  40.  
  41. local fontS1 = Instance.new("Frame", sg)
  42. fontS1.Size = UDim2.new(.2,0,.2,0)
  43. fontS1.Style = "RobloxRound"
  44. fontS1.Position = UDim2.new(.2,0,.4,0)
  45. local tb1 = Instance.new("TextLabel", fontS1)
  46. tb1.Text = "Font Color"
  47. tb1.FontSize = "Size12"
  48. tb1.BackgroundTransparency = 1
  49. tb1.TextColor3 = Color3.new(1,1,1)
  50. tb1.Size = UDim2.new(1,0,.25,0)
  51. local r1 = Instance.new("TextBox", fontS1)
  52. r1.Position = UDim2.new(0,0,.25,0)
  53. r1.TextColor3 = Color3.new(1,1,1)
  54. r1.BackgroundTransparency = 1
  55. r1.Size = UDim2.new(.3,0,.25,0)
  56. r1.Text = "0"
  57. local g1 = Instance.new("TextBox", fontS1)
  58. g1.Position = UDim2.new(.3,0,.25,0)
  59. g1.TextColor3 = Color3.new(1,1,1)
  60. g1.BackgroundTransparency = 1
  61. g1.Size = UDim2.new(.3,0,.25,0)
  62. g1.Text = "0"
  63. local b1 = Instance.new("TextBox", fontS1)
  64. b1.Position = UDim2.new(.6,0,.25,0)
  65. b1.TextColor3 = Color3.new(1,1,1)
  66. b1.BackgroundTransparency = 1
  67. b1.Size = UDim2.new(.3,0,.25,0)
  68. b1.Text = "0"
  69. local prev1 = Instance.new("Frame", fontS1)
  70. prev1.Size = UDim2.new(1,0,.5,0)
  71. prev1.Position = UDim2.new(0,0,.5,0)
  72. prev1.BackgroundColor3 = Color3.new(0,0,0)
  73. prev1.BorderColor3 = Color3.new(0,0,0)
  74. r1.Changed:connect(function()
  75. local color = tonumber(r1.Text) or 0
  76. prev1.BackgroundColor3 = Color3.new(color, tonumber(g1.Text) or 0, tonumber(b1.Text) or 0)
  77. end)
  78. g1.Changed:connect(function()
  79. local color = tonumber(g1.Text) or 0
  80. prev1.BackgroundColor3 = Color3.new(tonumber(r1.Text) or 0, color, tonumber(b1.Text) or 0)
  81. end)
  82. b1.Changed:connect(function()
  83. local color = tonumber(b1.Text) or 0
  84. prev1.BackgroundColor3 = Color3.new(tonumber(r1.Text) or 0, tonumber(g1.Text) or 0, color)
  85. end)
  86.  
  87. local FontS2 = Instance.new("Frame", sg)
  88. FontS2.Size = UDim2.new(.2,0,.2,0)
  89. FontS2.Style = "RobloxRound"
  90. FontS2.Position = UDim2.new(.4,0,.4,0)
  91. local tb2 = Instance.new("TextLabel", FontS2)
  92. tb2.Text = "Background Color"
  93. tb2.FontSize = "Size12"
  94. tb2.BackgroundTransparency = 1
  95. tb2.TextColor3 = Color3.new(1,1,1)
  96. tb2.Size = UDim2.new(1,0,.25,0)
  97. local r2 = Instance.new("TextBox", FontS2)
  98. r2.Position = UDim2.new(0,0,.25,0)
  99. r2.TextColor3 = Color3.new(1,1,1)
  100. r2.BackgroundTransparency = 1
  101. r2.Size = UDim2.new(.3,0,.25,0)
  102. r2.Text = "0"
  103. local g2 = Instance.new("TextBox", FontS2)
  104. g2.Position = UDim2.new(.3,0,.25,0)
  105. g2.TextColor3 = Color3.new(1,1,1)
  106. g2.BackgroundTransparency = 1
  107. g2.Size = UDim2.new(.3,0,.25,0)
  108. g2.Text = "0"
  109. local b2 = Instance.new("TextBox", FontS2)
  110. b2.Position = UDim2.new(.6,0,.25,0)
  111. b2.TextColor3 = Color3.new(1,1,1)
  112. b2.BackgroundTransparency = 1
  113. b2.Size = UDim2.new(.3,0,.25,0)
  114. b2.Text = "0"
  115. local prev2 = Instance.new("Frame", FontS2)
  116. prev2.Size = UDim2.new(1,0,.5,0)
  117. prev2.Position = UDim2.new(0,0,.5,0)
  118. prev2.BackgroundColor3 = Color3.new(0,0,0)
  119. prev2.BorderColor3 = Color3.new(0,0,0)
  120. r2.Changed:connect(function()
  121. local color = tonumber(r2.Text) or 0
  122. prev2.BackgroundColor3 = Color3.new(color, tonumber(g2.Text) or 0, tonumber(b2.Text) or 0)
  123. end)
  124. g2.Changed:connect(function()
  125. local color = tonumber(g2.Text) or 0
  126. prev2.BackgroundColor3 = Color3.new(tonumber(r2.Text) or 0, color, tonumber(b2.Text) or 0)
  127. end)
  128. b2.Changed:connect(function()
  129. local color = tonumber(b2.Text) or 0
  130. prev2.BackgroundColor3 = Color3.new(tonumber(r2.Text) or 0, tonumber(g2.Text) or 0, color)
  131. end)
  132.  
  133. local fontS3 = Instance.new("Frame", sg)
  134. fontS3.Size = UDim2.new(.2,0,.2,0)
  135. fontS3.Style = "RobloxRound"
  136. fontS3.Position = UDim2.new(.6,0,.4,0)
  137. local tb3 = Instance.new("TextLabel", fontS3)
  138. tb3.Text = "Border Color"
  139. tb3.FontSize = "Size12"
  140. tb3.BackgroundTransparency = 1
  141. tb3.TextColor3 = Color3.new(1,1,1)
  142. tb3.Size = UDim2.new(1,0,.25,0)
  143. local r3 = Instance.new("TextBox", fontS3)
  144. r3.Position = UDim2.new(0,0,.25,0)
  145. r3.TextColor3 = Color3.new(1,1,1)
  146. r3.BackgroundTransparency = 1
  147. r3.Size = UDim2.new(.3,0,.25,0)
  148. r3.Text = "0"
  149. local g3 = Instance.new("TextBox", fontS3)
  150. g3.Position = UDim2.new(.3,0,.25,0)
  151. g3.TextColor3 = Color3.new(1,1,1)
  152. g3.BackgroundTransparency = 1
  153. g3.Size = UDim2.new(.3,0,.25,0)
  154. g3.Text = "0"
  155. local b3 = Instance.new("TextBox", fontS3)
  156. b3.Position = UDim2.new(.6,0,.25,0)
  157. b3.TextColor3 = Color3.new(1,1,1)
  158. b3.BackgroundTransparency = 1
  159. b3.Size = UDim2.new(.3,0,.25,0)
  160. b3.Text = "0"
  161. local prev3 = Instance.new("Frame", fontS3)
  162. prev3.Size = UDim2.new(1,0,.5,0)
  163. prev3.Position = UDim2.new(0,0,.5,0)
  164. prev3.BackgroundColor3 = Color3.new(0,0,0)
  165. prev3.BorderColor3 = Color3.new(0,0,0)
  166. r3.Changed:connect(function()
  167. local color = tonumber(r3.Text) or 0
  168. prev3.BackgroundColor3 = Color3.new(color, tonumber(g3.Text) or 0, tonumber(b3.Text) or 0)
  169. end)
  170. g3.Changed:connect(function()
  171. local color = tonumber(g3.Text) or 0
  172. prev3.BackgroundColor3 = Color3.new(tonumber(r3.Text) or 0, color, tonumber(b3.Text) or 0)
  173. end)
  174. b3.Changed:connect(function()
  175. local color = tonumber(b3.Text) or 0
  176. prev3.BackgroundColor3 = Color3.new(tonumber(r3.Text) or 0, tonumber(g3.Text) or 0, color)
  177. end)
  178.  
  179. ok.MouseButton1Click:wait()
  180.  
  181. local fontcolor = prev1.BackgroundColor3
  182. local backgroundcolor = prev2.BackgroundColor3
  183. local bordercolor = prev3.BackgroundColor3
  184. fontS1:Destroy()
  185. FontS2:Destroy()
  186. fontS3:Destroy()
  187. ok:Destroy()
  188.  
  189. local fr = Instance.new("Frame", sg)
  190. fr.Style = "RobloxRound"
  191. fr.Size = UDim2.new(.35,0,.5,0)
  192. fr.Position = UDim2.new(0,0,.25,0)
  193.  
  194. local sb = Instance.new("TextButton", sg) -- Scrollbar
  195. local issbDown = false
  196. local sblasty = nil
  197. sb.Size = UDim2.new(.035,0,.5,0)
  198. sb.Position = UDim2.new(.35,0,.25,0)
  199. sb.BackgroundTransparency = backgroundtrans
  200. sb.TextColor3 = fontcolor
  201. sb.BorderColor3 = bordercolor
  202. sb.BackgroundColor3 = backgroundcolor
  203. sb.Text = "="
  204. sb.MouseButton1Down:connect(function()
  205. issbDown = true
  206. end)
  207. sb.MouseButton1Up:connect(function()
  208. issbDown = false
  209. end)
  210. sb.MouseLeave:connect(function()
  211. issbDown = false
  212. end)
  213. sb.MouseEnter:connect(function()
  214. issbDown = false
  215. end)
  216. sb.MouseMoved:connect(function(x,y)
  217. if issbDown then
  218. if not sblasty then sblasty = y end
  219. if sblasty - y < 0 then
  220. -- moving up
  221. for i,v in pairs(fr:GetChildren()) do
  222. v.Position = v.Position + UDim2.new(0,0,-.05,0)
  223. if v.Position.Y.Scale < .08 then
  224. v.BackgroundTransparency = 1
  225. v.TextButton.BackgroundTransparency = 1
  226. v.TextTransparency = 1
  227. v.TextButton.TextTransparency = 1
  228. elseif v.Position.Y.Scale >= .95 then
  229. else
  230. v.BackgroundTransparency = backgroundtrans
  231. v.TextButton.BackgroundTransparency = backgroundtrans
  232. v.TextTransparency = 0
  233. v.TextButton.TextTransparency = 0
  234. end
  235. end
  236. else
  237. -- moving down
  238. for i,v in pairs(fr:GetChildren()) do
  239. v.Position = v.Position + UDim2.new(0,0,.05,0)
  240. if v.Position.Y.Scale >= .95 then
  241. v.BackgroundTransparency = 1
  242. v.TextButton.BackgroundTransparency = 1
  243. v.TextTransparency = 1
  244. v.TextButton.TextTransparency = 1
  245. elseif v.Position.Y.Scale < .08 then
  246. else
  247. v.BackgroundTransparency = backgroundtrans
  248. v.TextButton.BackgroundTransparency = backgroundtrans
  249. v.TextTransparency = 0
  250. v.TextButton.TextTransparency = 0
  251. end
  252. end
  253. end
  254. end
  255. sblasty = y
  256. end)
  257.  
  258. local work = Instance.new("TextButton", sg)
  259. work.Position = UDim2.new(0,0,.2,0)
  260. work.Size = UDim2.new(.05,0,.05,0)
  261. work.BackgroundTransparency = backgroundtrans
  262. work.TextColor3 = fontcolor
  263. work.BorderColor3 = bordercolor
  264. work.BackgroundColor3 = backgroundcolor
  265. work.Text = "Workspace"
  266. work.MouseButton1Click:connect(function()
  267. current = Workspace
  268. Clear()
  269. GetList()
  270. end)
  271. work.MouseButton2Up:connect(function(x,y)
  272. local pos = UDim2.new(0,x,0,y)
  273. CreatePasteMenu(pos, Workspace)
  274. end)
  275.  
  276. local light = Instance.new("TextButton", sg)
  277. light.Position = UDim2.new(0.06,0,.2,0)
  278. light.Size = UDim2.new(.05,0,.05,0)
  279. light.BackgroundTransparency = backgroundtrans
  280. light.TextColor3 = fontcolor
  281. light.BorderColor3 = bordercolor
  282. light.BackgroundColor3 = backgroundcolor
  283. light.Text = "Lighting"
  284. light.MouseButton1Click:connect(function()
  285. current = game.Lighting
  286. Clear()
  287. GetList()
  288. end)
  289. light.MouseButton2Up:connect(function(x,y)
  290. local pos = UDim2.new(0,x,0,y)
  291. CreatePasteMenu(pos, game.Lighting)
  292. end)
  293.  
  294. local players = Instance.new("TextButton", sg)
  295. players.Position = UDim2.new(0.12,0,.2,0)
  296. players.Size = UDim2.new(.05,0,.05,0)
  297. players.BackgroundTransparency = backgroundtrans
  298. players.TextColor3 = fontcolor
  299. players.BorderColor3 = bordercolor
  300. players.BackgroundColor3 = backgroundcolor
  301. players.Text = "Players"
  302. players.MouseButton1Click:connect(function()
  303. current = game.Players
  304. Clear()
  305. GetList()
  306. end)
  307. players.MouseButton2Up:connect(function(x,y)
  308. local pos = UDim2.new(0,x,0,y)
  309. CreatePasteMenu(pos, game.Players)
  310. end)
  311.  
  312. local starterp = Instance.new("TextButton", sg)
  313. starterp.Position = UDim2.new(0.18,0,.2,0)
  314. starterp.Size = UDim2.new(.05,0,.05,0)
  315. starterp.BackgroundTransparency = backgroundtrans
  316. starterp.TextColor3 = fontcolor
  317. starterp.BorderColor3 = bordercolor
  318. starterp.BackgroundColor3 = backgroundcolor
  319. starterp.Text = "StarterPack"
  320. starterp.MouseButton1Click:connect(function()
  321. current = game.StarterPack
  322. Clear()
  323. GetList()
  324. end)
  325. starterp.MouseButton2Up:connect(function(x,y)
  326. local pos = UDim2.new(0,x,0,y)
  327. CreatePasteMenu(pos, game.StarterPack)
  328. end)
  329.  
  330. local starterg = Instance.new("TextButton", sg)
  331. starterg.Position = UDim2.new(0.24,0,.2,0)
  332. starterg.Size = UDim2.new(.05,0,.05,0)
  333. starterg.BackgroundTransparency = backgroundtrans
  334. starterg.TextColor3 = fontcolor
  335. starterg.BorderColor3 = bordercolor
  336. starterg.BackgroundColor3 = backgroundcolor
  337. starterg.Text = "StarterGui"
  338. starterg.MouseButton1Click:connect(function()
  339. current = game.StarterGui
  340. Clear()
  341. GetList()
  342. end)
  343. starterg.MouseButton2Up:connect(function(x,y)
  344. local pos = UDim2.new(0,x,0,y)
  345. CreatePasteMenu(pos, game.StarterGui)
  346. end)
  347.  
  348. function CreateButtons(object, otr)
  349. local tb = Instance.new("TextButton", fr)
  350. tb.Size = UDim2.new(.9,0,.05,0)
  351. tb.Text = object.Name
  352. tb.Position = UDim2.new(0,0,cp + .05,0)
  353. tb.BackgroundTransparency = otr or backgroundtrans
  354. tb.TextColor3 = fontcolor
  355. tb.BorderColor3 = bordercolor
  356. tb.BackgroundColor3 = backgroundcolor
  357. tb.TextTransparency = otr or 0
  358. cp = cp + .05
  359. local ov = Instance.new("ObjectValue", tb)
  360. ov.Value = object
  361. local x = Instance.new("TextButton", tb)
  362. x.BackgroundTransparency = otr or backgroundtrans
  363. x.TextColor3 = fontcolor
  364. x.BorderColor3 = bordercolor
  365. x.BackgroundColor3 = backgroundcolor
  366. x.TextTransparency = otr or 0
  367. x.Size = UDim2.new(.1,0,1,0)
  368. x.Position = UDim2.new(1,0,0,0)
  369. x.FontSize = "Size12"
  370. x.Text = "+"
  371. tb.MouseButton1Click:connect(function()-- properties window open
  372. CreatePropertiesWindow(ov.Value)
  373. end)
  374. tb.MouseButton2Up:connect(function(x,y)
  375. CreateDropDownMenu(UDim2.new(0,x,0,y), ov.Value)
  376. end)
  377. x.MouseButton1Click:connect(function()
  378. current = ov.Value
  379. Clear()
  380. GetList()
  381. end)
  382. end
  383.  
  384. function CreatePropertiesWindow(obj)
  385. if not obj then return end
  386. pcall(function() sg.P:Destroy() end)
  387. local push = 0
  388. local f = Instance.new("Frame", sg)
  389. f.Name = "P"
  390. f.Style = "RobloxRound"
  391. f.Size = UDim2.new(.4,0,.7,0)
  392. f.Position = UDim2.new(.6,0,.15,0)
  393. if pcall(function() _ = obj["Name"] end) then
  394. local pN = Instance.new("TextLabel", f)
  395. pN.Size = UDim2.new(.5,0,.05,0)
  396. pN.Position = UDim2.new(0,0, push,0)
  397. pN.Text = "Name"
  398. pN.BackgroundColor3 = backgroundcolor
  399. pN.BorderColor3 = bordercolor
  400. pN.TextColor3 = bordercolor
  401. pN.FontSize = "Size10"
  402. local pV = Instance.new("TextBox", f)
  403. pV.ClearTextOnFocus = false
  404. pV.Size = UDim2.new(.5,0,.05,0)
  405. pV.Position = UDim2.new(.5,0,push,0)
  406. push = push + .05
  407. pV.Text = obj.Name
  408. pV.BackgroundColor3 = backgroundcolor
  409. pV.BorderColor3 = bordercolor
  410. pV.TextColor3 = fontcolor
  411. pV.FontSize = "Size10"
  412. pV.Changed:connect(function()
  413. pcall(function()
  414. obj.Name = pV.Text
  415. end)
  416. end)
  417. end
  418. if pcall(function() _ = obj["ClassName"] end) then
  419. local pN = Instance.new("TextLabel", f)
  420. pN.Size = UDim2.new(.5,0,.05,0)
  421. pN.Position = UDim2.new(0,0, push,0)
  422. pN.Text = "ClassName"
  423. pN.BackgroundColor3 = backgroundcolor
  424. pN.BorderColor3 = bordercolor
  425. pN.TextColor3 = bordercolor
  426. pN.FontSize = "Size10"
  427. local pV = Instance.new("TextLabel", f)
  428. pV.Size = UDim2.new(.5,0,.05,0)
  429. pV.Position = UDim2.new(.5,0,push,0)
  430. push = push + .05
  431. pV.Text = obj.ClassName
  432. pV.BackgroundColor3 = backgroundcolor
  433. pV.BorderColor3 = bordercolor
  434. pV.TextColor3 = bordercolor
  435. pV.FontSize = "Size10"
  436. end
  437. if pcall(function() _ = obj["BrickColor"] end) then
  438. local pN = Instance.new("TextLabel", f)
  439. pN.Size = UDim2.new(.5,0,.05,0)
  440. pN.Position = UDim2.new(0,0, push,0)
  441. pN.Text = "BrickColor"
  442. pN.BackgroundColor3 = backgroundcolor
  443. pN.BorderColor3 = bordercolor
  444. pN.TextColor3 = bordercolor
  445. pN.FontSize = "Size10"
  446. local pV = Instance.new("TextBox", f)
  447. pV.Size = UDim2.new(.5,0,.05,0)
  448. pV.Position = UDim2.new(.5,0,push,0)
  449. push = push + .05
  450. pV.Text = tostring(obj.BrickColor)
  451. pV.BackgroundColor3 = backgroundcolor
  452. pV.BorderColor3 = bordercolor
  453. pV.TextColor3 = fontcolor
  454. pV.FontSize = "Size10"
  455. pV.Changed:connect(function()
  456. pcall(function()
  457. obj.BrickColor = BrickColor.new(pV.Text)
  458. end)
  459. end)
  460. end
  461. if pcall(function() _ = obj["Text"] end) then
  462. local pN = Instance.new("TextLabel", f)
  463. pN.Size = UDim2.new(.5,0,.05,0)
  464. pN.Position = UDim2.new(0,0, push,0)
  465. pN.Text = "Text"
  466. pN.BackgroundColor3 = backgroundcolor
  467. pN.BorderColor3 = bordercolor
  468. pN.TextColor3 = bordercolor
  469. pN.FontSize = "Size10"
  470. local pV = Instance.new("TextBox", f)
  471. pV.Size = UDim2.new(.5,0,.05,0)
  472. pV.Position = UDim2.new(.5,0,push,0)
  473. push = push + .05
  474. pV.Text = obj.Text
  475. pV.BackgroundColor3 = backgroundcolor
  476. pV.BorderColor3 = bordercolor
  477. pV.TextColor3 = fontcolor
  478. pV.FontSize = "Size10"
  479. pV.Changed:connect(function()
  480. pcall(function()
  481. obj.Text = pV.Text
  482. end)
  483. end)
  484. end
  485. if pcall(function() _ = obj["Value"] end) and (obj.ClassName == "StringValue" or obj.ClassName == "IntValue" or obj.ClassName == "NumberValue") then
  486. local pN = Instance.new("TextLabel", f)
  487. pN.Size = UDim2.new(.5,0,.05,0)
  488. pN.Position = UDim2.new(0,0, push,0)
  489. pN.Text = "Value"
  490. pN.BackgroundColor3 = backgroundcolor
  491. pN.BorderColor3 = bordercolor
  492. pN.TextColor3 = bordercolor
  493. pN.FontSize = "Size10"
  494. local pV = Instance.new("TextBox", f)
  495. pV.Size = UDim2.new(.5,0,.05,0)
  496. pV.Position = UDim2.new(.5,0,push,0)
  497. push = push + .05
  498. pV.Text = obj.Value
  499. pV.BackgroundColor3 = backgroundcolor
  500. pV.BorderColor3 = bordercolor
  501. pV.TextColor3 = fontcolor
  502. pV.FontSize = "Size10"
  503. pV.Changed:connect(function()
  504. pcall(function()
  505. if type(obj.Value) == "number" then
  506. obj.Value = tonumber(pV.Text) or 0
  507. else
  508. obj.Value = pV.Text
  509. end
  510. end)
  511. end)
  512. end
  513. end
  514.  
  515. function CreateDropDownMenu(pos, obj)
  516. local f = Instance.new("Frame", sg)
  517. f.BackgroundColor3 = backgroundcolor
  518. f.BorderColor3 = bordercolor
  519. f.Size = UDim2.new(.1,0,.2,0)
  520. f.BackgroundTransparency = .3
  521. f.Position = pos
  522. local d = Instance.new("TextButton", f)
  523. d.BackgroundTransparency = 1
  524. d.Text = "Delete"
  525. d.FontSize = "Size10"
  526. d.TextColor3 = fontcolor
  527. d.Size = UDim2.new(1,0,.15,0)
  528. d.MouseButton1Click:connect(function()
  529. pcall(function()
  530. obj:Destroy()
  531. end)
  532. Clear()
  533. GetList()
  534. f:Destroy()
  535. end)
  536. local c = Instance.new("TextButton", f)
  537. c.BackgroundTransparency = 1
  538. c.Text = "Copy"
  539. c.FontSize = "Size10"
  540. c.TextColor3 = fontcolor
  541. c.Size = UDim2.new(1,0,.15,0)
  542. c.Position = UDim2.new(0,0,.15,0)
  543. c.MouseButton1Click:connect(function()
  544. pcall(function()
  545. copy = obj:Clone()
  546. end)
  547. f:Destroy()
  548. end)
  549. local p = Instance.new("TextButton", f)
  550. p.BackgroundTransparency = 1
  551. p.Text = "Paste into"
  552. p.FontSize = "Size10"
  553. p.TextColor3 = fontcolor
  554. p.Size = UDim2.new(1,0,.15,0)
  555. p.Position = UDim2.new(0,0,.3,0)
  556. p.MouseButton1Click:connect(function()
  557. pcall(function()
  558. copy.Parent = obj
  559. end)
  560. f:Destroy()
  561. end)
  562. local x = Instance.new("TextButton", f)
  563. x.BackgroundTransparency = 1
  564. x.Text = "Close"
  565. x.FontSize = "Size10"
  566. x.TextColor3 = fontcolor
  567. x.Size = UDim2.new(1,0,.15,0)
  568. x.Position = UDim2.new(0,0,.45,0)
  569. x.MouseButton1Click:connect(function()
  570. f:Destroy()
  571. end)
  572. end
  573.  
  574. function CreatePasteMenu(pos, obj)
  575. local f = Instance.new("Frame", sg)
  576. f.BackgroundColor3 = backgroundcolor
  577. f.BorderColor3 = bordercolor
  578. f.Size = UDim2.new(.1,0,.2,0)
  579. f.BackgroundTransparency = .3
  580. f.Position = pos
  581. local p = Instance.new("TextButton", f)
  582. p.BackgroundTransparency = 1
  583. p.Text = "Paste into"
  584. p.FontSize = "Size10"
  585. p.TextColor3 = fontcolor
  586. p.Size = UDim2.new(1,0,.15,0)
  587. p.Position = UDim2.new(0,0,0,0)
  588. p.MouseButton1Click:connect(function()
  589. pcall(function()
  590. copy.Parent = obj
  591. end)
  592. f:Destroy()
  593. end)
  594. local x = Instance.new("TextButton", f)
  595. x.BackgroundTransparency = 1
  596. x.Text = "Close"
  597. x.FontSize = "Size10"
  598. x.TextColor3 = fontcolor
  599. x.Size = UDim2.new(1,0,.15,0)
  600. x.Position = UDim2.new(0,0,.45,0)
  601. x.MouseButton1Click:connect(function()
  602. f:Destroy()
  603. end)
  604. end
  605.  
  606. function Clear()
  607. for i,v in pairs(fr:GetChildren()) do
  608. v:Destroy()
  609. cp = 0
  610. end
  611. end
  612.  
  613. function GetList()
  614. local max = 100
  615. local it = 0
  616. for i,v in pairs(current:GetChildren()) do
  617. if cp < .9 then
  618. CreateButtons(v)
  619. else
  620. CreateButtons(v, 1)
  621. end
  622. it = it + 1
  623. if it == max then break end
  624. end
  625. end
  626.  
  627. GetList()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement