Meliodas0_0

GUI descompiler

Feb 13th, 2020
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.75 KB | None | 0 0
  1.  
  2. local library = {}
  3.  
  4. local dragger = {};
  5. local resizer = {};
  6.  
  7. do
  8. local mouse = game:GetService("Players").LocalPlayer:GetMouse();
  9. local inputService = game:GetService('UserInputService');
  10. local heartbeat = game:GetService("RunService").Heartbeat;
  11. -- // credits to Ririchi / Inori for this cute drag function :)
  12. function dragger.new(frame)
  13. local s, event = pcall(function()
  14. return frame.MouseEnter
  15. end)
  16.  
  17. if s then
  18. frame.Active = true;
  19.  
  20. event:connect(function()
  21. local input = frame.InputBegan:connect(function(key)
  22. if key.UserInputType == Enum.UserInputType.MouseButton1 then
  23. local objectPosition = Vector2.new(mouse.X - frame.AbsolutePosition.X, mouse.Y - frame.AbsolutePosition.Y);
  24. while heartbeat:wait() and inputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) do
  25. frame:TweenPosition(UDim2.new(0, mouse.X - objectPosition.X + (frame.Size.X.Offset * frame.AnchorPoint.X), 0, mouse.Y - objectPosition.Y + (frame.Size.Y.Offset * frame.AnchorPoint.Y)), 'Out', 'Quad', 0.05, true);
  26. end
  27. end
  28. end)
  29.  
  30. local leave;
  31. leave = frame.MouseLeave:connect(function()
  32. input:disconnect();
  33. leave:disconnect();
  34. end)
  35. end)
  36. end
  37. end
  38.  
  39. function resizer.new(p, s)
  40. p:GetPropertyChangedSignal('AbsoluteSize'):connect(function()
  41. s.Size = UDim2.new(s.Size.X.Scale, s.Size.X.Offset, s.Size.Y.Scale, p.AbsoluteSize.Y);
  42. end)
  43. end
  44. end
  45.  
  46. local Kiwii = Instance.new("ScreenGui")
  47. local Frame1 = Instance.new("ImageLabel")
  48. local TopBar = Instance.new("ImageLabel")
  49. local TitleBar = Instance.new("TextLabel")
  50. local ListBox = Instance.new("ImageLabel")
  51. local Frame2 = Instance.new("ScrollingFrame")
  52. local UIListLayout = Instance.new("UIListLayout")
  53. local BGExec2 = Instance.new("ImageLabel")
  54. local BGExec = Instance.new("ScrollingFrame")
  55. local Write = Instance.new("TextBox")
  56. local Read = Instance.new("TextLabel")
  57. local MenuStrip = Instance.new("ImageLabel")
  58. local SaveButtonFrame = Instance.new("ImageLabel")
  59. local SaveButton = Instance.new("TextButton")
  60. local UIListLayout_2 = Instance.new("UIListLayout")
  61. local CopyButtonFrame = Instance.new("ImageLabel")
  62. local CopyButton = Instance.new("TextButton")
  63.  
  64. Kiwii.Name = "Kiwii"
  65. Kiwii.Parent = game.CoreGui
  66.  
  67. Frame1.Name = "Frame1"
  68. Frame1.Parent = Kiwii
  69. Frame1.BackgroundColor3 = Color3.new(0.0666667, 0.0666667, 0.0666667)
  70. Frame1.BackgroundTransparency = 1
  71. Frame1.Position = UDim2.new(0.258010149, 0, 0.202134907, 0)
  72. Frame1.Size = UDim2.new(0, 573, 0, 357)
  73. Frame1.Image = "rbxassetid://3570695787"
  74. Frame1.ImageColor3 = Color3.new(0.133333, 0.133333, 0.133333)
  75. Frame1.ScaleType = Enum.ScaleType.Slice
  76. Frame1.SliceCenter = Rect.new(100, 100, 100, 100)
  77. Frame1.SliceScale = 0.11999999731779
  78. dragger.new(Frame1)
  79.  
  80. TopBar.Name = "TopBar"
  81. TopBar.Parent = Frame1
  82. TopBar.BackgroundColor3 = Color3.new(0.0666667, 0.0666667, 0.0666667)
  83. TopBar.BackgroundTransparency = 1
  84. TopBar.Position = UDim2.new(0, 0, -0.00270520803, 0)
  85. TopBar.Size = UDim2.new(0, 573, 0, 23)
  86. TopBar.Image = "rbxassetid://1051202035"
  87. TopBar.ImageColor3 = Color3.new(0.309804, 0.72549, 0.301961)
  88. TopBar.ScaleType = Enum.ScaleType.Slice
  89. TopBar.SliceCenter = Rect.new(20, 20, 20, 20)
  90.  
  91. TitleBar.Name = "TitleBar"
  92. TitleBar.Parent = TopBar
  93. TitleBar.BackgroundColor3 = Color3.new(1, 1, 1)
  94. TitleBar.BackgroundTransparency = 1
  95. TitleBar.Size = UDim2.new(1, 0, 1, 0)
  96. TitleBar.Font = Enum.Font.SourceSansSemibold
  97. TitleBar.Text = "Kiwii's Decompiler"
  98. TitleBar.TextColor3 = Color3.new(1, 1, 1)
  99. TitleBar.TextSize = 16
  100.  
  101. ListBox.Name = "ListBox"
  102. ListBox.Parent = Frame1
  103. ListBox.BackgroundColor3 = Color3.new(0.0509804, 0, 0.764706)
  104. ListBox.BackgroundTransparency = 1
  105. ListBox.BorderColor3 = Color3.new(1, 0, 0.0156863)
  106. ListBox.BorderSizePixel = 0
  107. ListBox.Position = UDim2.new(0.704547465, 0, 0.0863118321, 0)
  108. ListBox.Size = UDim2.new(0, 162, 0, 319)
  109. ListBox.Image = "rbxassetid://3570695787"
  110. ListBox.ImageColor3 = Color3.new(0.192157, 0.192157, 0.192157)
  111. ListBox.ScaleType = Enum.ScaleType.Slice
  112. ListBox.SliceCenter = Rect.new(100, 100, 100, 100)
  113. ListBox.SliceScale = 0.070000000298023
  114.  
  115. Frame2.Name = "Frame2"
  116. Frame2.Parent = ListBox
  117. Frame2.BackgroundColor3 = Color3.new(1, 1, 1)
  118. Frame2.BackgroundTransparency = 1
  119. Frame2.BorderSizePixel = 0
  120. Frame2.Position = UDim2.new(-0.00213301182, 0, -0.000939555466, 0)
  121. Frame2.Size = UDim2.new(0, 162, 0, 319)
  122. Frame2.CanvasSize = UDim2.new(2, 0, 11, 0)
  123. Frame2.HorizontalScrollBarInset = Enum.ScrollBarInset.Always
  124. Frame2.ScrollBarThickness = 10
  125.  
  126. UIListLayout.Parent = Frame2
  127. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  128.  
  129. BGExec2.Name = "BGExec2"
  130. BGExec2.Parent = Frame1
  131. BGExec2.BackgroundColor3 = Color3.new(0.0509804, 0, 0.764706)
  132. BGExec2.BackgroundTransparency = 1
  133. BGExec2.BorderColor3 = Color3.new(1, 0, 0.0156863)
  134. BGExec2.BorderSizePixel = 0
  135. BGExec2.Position = UDim2.new(0.0151931737, 0, 0.144295916, 0)
  136. BGExec2.Size = UDim2.new(0, 385, 0, 298)
  137. BGExec2.Image = "rbxassetid://3570695787"
  138. BGExec2.ImageColor3 = Color3.new(0.192157, 0.192157, 0.192157)
  139. BGExec2.ScaleType = Enum.ScaleType.Slice
  140. BGExec2.SliceCenter = Rect.new(100, 100, 100, 100)
  141. BGExec2.SliceScale = 0.070000000298023
  142.  
  143. BGExec.Name = "BGExec"
  144. BGExec.Parent = BGExec2
  145. BGExec.Active = true
  146. BGExec.BackgroundColor3 = Color3.new(1, 1, 1)
  147. BGExec.BackgroundTransparency = 1
  148. BGExec.BorderSizePixel = 0
  149. BGExec.Size = UDim2.new(1.02597404, -10, 1.20134223, -60)
  150. BGExec.ZIndex = 2
  151. BGExec.CanvasSize = UDim2.new(20, 0, 20, 0)
  152. BGExec.ScrollBarThickness = 8
  153. BGExec.VerticalScrollBarInset = Enum.ScrollBarInset.Always
  154.  
  155. Write.Name = "Write"
  156. Write.Parent = BGExec
  157. Write.BackgroundColor3 = Color3.new(1, 1, 1)
  158. Write.BackgroundTransparency = 1
  159. Write.BorderSizePixel = 0
  160. Write.Position = UDim2.new(0, 0, -1.02407988e-07, 0)
  161. Write.Size = UDim2.new(1, 0, 100.372002, 25)
  162. Write.ZIndex = 2
  163. Write.ClearTextOnFocus = false
  164. Write.Font = Enum.Font.Code
  165. Write.MultiLine = true
  166. Write.Text = ""
  167. Write.TextColor3 = Color3.new(0.8, 0.8, 0.8)
  168. Write.TextSize = 14
  169. Write.TextStrokeTransparency = 0.94999998807907
  170. Write.TextXAlignment = Enum.TextXAlignment.Left
  171. Write.TextYAlignment = Enum.TextYAlignment.Top
  172.  
  173. Read.Name = "Read"
  174. Read.Parent = BGExec
  175. Read.BackgroundColor3 = Color3.new(1, 1, 1)
  176. Read.BackgroundTransparency = 1
  177. Read.BorderSizePixel = 0
  178. Read.ZIndex = 2
  179. Read.Font = Enum.Font.Code
  180. Read.Text = ""
  181. Read.TextColor3 = Color3.new(0.8, 0.8, 0.8)
  182. Read.TextSize = 14
  183. Read.TextStrokeTransparency = 0.94999998807907
  184. Read.TextXAlignment = Enum.TextXAlignment.Left
  185. Read.TextYAlignment = Enum.TextYAlignment.Top
  186.  
  187. MenuStrip.Name = "MenuStrip"
  188. MenuStrip.Parent = Frame1
  189. MenuStrip.BackgroundColor3 = Color3.new(0.0509804, 0, 0.764706)
  190. MenuStrip.BackgroundTransparency = 1
  191. MenuStrip.BorderColor3 = Color3.new(1, 0, 0.0156863)
  192. MenuStrip.BorderSizePixel = 0
  193. MenuStrip.Position = UDim2.new(0.0151931737, 0, 0.0854723826, 0)
  194. MenuStrip.Size = UDim2.new(0, 385, 0, 15)
  195. MenuStrip.Image = "rbxassetid://3570695787"
  196. MenuStrip.ImageColor3 = Color3.new(0.192157, 0.192157, 0.192157)
  197. MenuStrip.ScaleType = Enum.ScaleType.Slice
  198. MenuStrip.SliceCenter = Rect.new(100, 100, 100, 100)
  199. MenuStrip.SliceScale = 0.029999999329448
  200.  
  201. SaveButtonFrame.Name = "SaveButtonFrame"
  202. SaveButtonFrame.Parent = MenuStrip
  203. SaveButtonFrame.BackgroundColor3 = Color3.new(0.0509804, 0, 0.764706)
  204. SaveButtonFrame.BackgroundTransparency = 1
  205. SaveButtonFrame.BorderColor3 = Color3.new(1, 0, 0.0156863)
  206. SaveButtonFrame.BorderSizePixel = 0
  207. SaveButtonFrame.Position = UDim2.new(-0.00039125912, 0, 0, 0)
  208. SaveButtonFrame.Size = UDim2.new(0, 71, 0, 15)
  209. SaveButtonFrame.Image = "rbxassetid://3570695787"
  210. SaveButtonFrame.ImageColor3 = Color3.new(0.192157, 0.192157, 0.192157)
  211. SaveButtonFrame.ScaleType = Enum.ScaleType.Slice
  212. SaveButtonFrame.SliceCenter = Rect.new(100, 100, 100, 100)
  213. SaveButtonFrame.SliceScale = 0.029999999329448
  214.  
  215. SaveButton.Name = "SaveButton"
  216. SaveButton.Parent = SaveButtonFrame
  217. SaveButton.BackgroundColor3 = Color3.new(1, 1, 1)
  218. SaveButton.BackgroundTransparency = 1
  219. SaveButton.Size = UDim2.new(0, 71, 0, 15)
  220. SaveButton.Font = Enum.Font.SourceSansSemibold
  221. SaveButton.Text = "Save Script"
  222. SaveButton.TextColor3 = Color3.new(0.831373, 0.831373, 0.831373)
  223. SaveButton.TextSize = 12
  224.  
  225. UIListLayout_2.Parent = MenuStrip
  226. UIListLayout_2.FillDirection = Enum.FillDirection.Horizontal
  227. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  228.  
  229. CopyButtonFrame.Name = "CopyButtonFrame"
  230. CopyButtonFrame.Parent = MenuStrip
  231. CopyButtonFrame.BackgroundColor3 = Color3.new(0.0509804, 0, 0.764706)
  232. CopyButtonFrame.BackgroundTransparency = 1
  233. CopyButtonFrame.BorderColor3 = Color3.new(1, 0, 0.0156863)
  234. CopyButtonFrame.BorderSizePixel = 0
  235. CopyButtonFrame.Position = UDim2.new(0.184415579, 0, 0, 0)
  236. CopyButtonFrame.Size = UDim2.new(0, 89, 0, 15)
  237. CopyButtonFrame.Image = "rbxassetid://3570695787"
  238. CopyButtonFrame.ImageColor3 = Color3.new(0.192157, 0.192157, 0.192157)
  239. CopyButtonFrame.ScaleType = Enum.ScaleType.Slice
  240. CopyButtonFrame.SliceCenter = Rect.new(100, 100, 100, 100)
  241. CopyButtonFrame.SliceScale = 0.029999999329448
  242.  
  243. CopyButton.Name = "CopyButton"
  244. CopyButton.Parent = CopyButtonFrame
  245. CopyButton.BackgroundColor3 = Color3.new(1, 1, 1)
  246. CopyButton.BackgroundTransparency = 1
  247. CopyButton.Size = UDim2.new(0, 89, 0, 15)
  248. CopyButton.Font = Enum.Font.SourceSansSemibold
  249. CopyButton.Text = "Copy to Clipboard"
  250. CopyButton.TextColor3 = Color3.new(0.831373, 0.831373, 0.831373)
  251. CopyButton.TextSize = 12
  252.  
  253. local textserv = game:GetService('TextService')
  254.  
  255. local replacements = {['\r'] = '', ['\t'] = ' '}
  256. local keyword_list = {'and', 'break', 'do', 'else', 'elseif', 'end', 'false', 'for', 'function', 'if', 'in', 'local', 'nil', 'not', 'or', 'repeat', 'return', 'self', 'then', 'true', 'until', 'while'}
  257. local globals_list = {}
  258. local colors = {
  259. Comment = Color3.fromRGB(74, 139, 69),
  260. Global = Color3.fromRGB(69, 180, 152),
  261. Keyword = Color3.fromRGB(86, 156, 214),
  262. Number = Color3.fromRGB(181, 206, 168),
  263. String = Color3.fromRGB(193, 118, 76),
  264. Symbol = Color3.fromRGB(255, 255, 255),
  265. Word = Color3.fromRGB(255, 255, 255)
  266. }
  267.  
  268. do
  269. local env = getfenv(0)
  270.  
  271. local function recurse(s, t)
  272. for i, v in next, t do
  273. local name = s .. '.' .. i
  274. globals_list[name] = true
  275. if type(v) == 'table' then
  276. recurse(name, v)
  277. end
  278. end
  279. end
  280.  
  281. setmetatable(globals_list, {
  282. __index = function(self, what)
  283. local got = env[what]
  284. local rl = got ~= nil
  285. if rl and type(got) == 'table' then
  286. recurse(what, got)
  287. end
  288. self[what] = rl
  289. return rl
  290. end
  291. })
  292. end
  293.  
  294. local function normalize(t)
  295. for i = 1, #t do
  296. t[t[i]] = true
  297. t[i] = nil
  298. end
  299. end
  300.  
  301. normalize(keyword_list)
  302.  
  303. local function text_size(str, size)
  304. return textserv:GetTextSize(str, 14, Enum.Font.Code, size)
  305. end
  306.  
  307. local function cut_off(word, n, t)
  308. if t == "[" then
  309. warn(word:sub(n, n))
  310. warn(word:sub(n + 1, n + 1))
  311. end
  312. return word:sub(n, n) == t and word:sub(n + 1, n + 1) == t
  313. end
  314.  
  315. local function is_long(words, s)
  316. if words:sub(s, s) == '[' then
  317. local k = s + 1
  318. while words:sub(k, k) == '=' do
  319. k = k + 1
  320. end
  321. return words:sub(k, k) == '[', k - s + 1
  322. end
  323. return false, 0
  324. end
  325.  
  326. local function read_long(words, s, n)
  327. local reached
  328. for i = s, #words do
  329. local ch = words:sub(i, i)
  330. if ch == ']' then
  331. for j = i + 1, #words do
  332. local wh = words:sub(j, j)
  333. if wh ~= '=' then
  334. if wh == ']' and ((j - i - 1) == n) then
  335. reached = j
  336. end
  337. break
  338. end
  339. end
  340. end
  341. if reached then
  342. break
  343. end
  344. end
  345. return (reached or #words) - s + 1
  346. end
  347.  
  348. local function read_comment(words, s)
  349. local len = s + 2
  350. local wlen = #words
  351. local long, longlen = is_long(words, len)
  352. if long then
  353. return read_long(words, len + longlen, longlen - 2) + longlen + 2
  354. else
  355. local ch
  356. repeat
  357. ch = words:sub(len, len)
  358. len = len + 1
  359. until len > wlen or ch == '\n'
  360. return len - s
  361. end
  362. end
  363.  
  364. local function read_string(words, s, q)
  365. local ret = #words
  366. local esc = false
  367. for i = s, ret do
  368. local c = words:sub(i, i)
  369. if c == '\\' and not esc then
  370. esc = true
  371. elseif c == q and not esc then
  372. ret = i
  373. break
  374. else
  375. esc = false
  376. end
  377. end
  378. return ret - s + 1
  379. end
  380.  
  381. local function read_alphanum(words, s)
  382. local len = 0
  383. while words:sub(s + len, s + len):match('[%w_.:]') do
  384. len = len + 1
  385. end
  386. return len
  387. end
  388.  
  389. local function read_symbols(words, s)
  390. local len = 0
  391. local word
  392. repeat
  393. local nx = s + len
  394. if cut_off(words, nx, '-') or is_long(words, nx) or cut_off(words, nx+1, "[") then
  395. break
  396. end
  397. word = words:sub(nx, nx)
  398. len = len + 1
  399. wait();
  400. until not word:match('[^%s%w_\'"]')
  401. return len - 1
  402. end
  403.  
  404. local function read_whitespace(words, s)
  405. local len = 0
  406. while words:sub(s + len, s + len):match('%s') do
  407. len = len + 1
  408. end
  409. return len
  410. end
  411.  
  412. local function parse_words(words)
  413. local pos = 1
  414. local wlen = #words
  415. local list = {}
  416.  
  417. while pos <= wlen do
  418. local ch = words:sub(pos, pos)
  419. local frm = Read:Clone()
  420. local col, len
  421.  
  422. local long, longlen = is_long(words, pos)
  423.  
  424. if long then
  425. len = read_long(words, pos + longlen, longlen - 2) + longlen
  426. col = colors.String
  427. elseif cut_off(words, pos, '-') then
  428. len = read_comment(words, pos)
  429. col = colors.Comment
  430. elseif ch == '"' or ch == '\'' then
  431. len = read_string(words, pos + 1, ch) + 1
  432. col = colors.String
  433. elseif ch:match('[%w_.:]') then
  434. local word
  435. len = read_alphanum(words, pos)
  436. word = words:sub(pos, pos + len - 1)
  437. if tonumber(word) then
  438. col = colors.Number
  439. elseif keyword_list[word] then
  440. col = colors.Keyword
  441. else
  442. local rln = 0
  443. for cnk in string.gmatch(word, '[^.:]+') do
  444. local nx = rln + #cnk
  445. if globals_list[word:sub(1, nx)] then
  446. rln = nx + 1
  447. else
  448. break
  449. end
  450. end
  451. if rln ~= 0 then
  452. len = rln - 1
  453. col = colors.Global
  454. else
  455. col = colors.Word
  456. end
  457. end
  458. elseif ch:match('[^%s%w_\'"]') then
  459. len = 1 -- fucking bandaid shit for a crash
  460. col = colors.Symbol
  461. elseif ch:match('%s') then
  462. len = read_whitespace(words, pos)
  463. col = colors.Word
  464. else
  465. error('Failed big man ting!')
  466. end
  467. table.insert(list, {
  468. str = words:sub(pos, pos + len - 1),
  469. col = col
  470. })
  471. pos = pos + len
  472. end
  473.  
  474. return list
  475. end
  476.  
  477. local function highlight()
  478. local wtext = Write.Text:gsub('[\r\t]', replacements)
  479. local parsed = parse_words(wtext)
  480. local x, y = 0, 0
  481.  
  482. Write:ClearAllChildren()
  483. Write.Text = wtext
  484.  
  485. local function new_frame(str, col, last, j)
  486. local txt = str:sub(last, j)
  487. local sz = text_size(txt, BGExec.AbsoluteSize)
  488. local num = (BGExec.CanvasPosition.Y + BGExec.AbsoluteSize.Y)
  489. local num2 = (BGExec.CanvasPosition.Y - BGExec.AbsoluteSize.Y)
  490.  
  491. if (y > num) or (y < num2) then
  492. return sz;
  493. end
  494.  
  495. if col ~= colors.Word then
  496. local rd = Read:Clone()
  497. rd.Text = txt
  498. rd.TextColor3 = col
  499. rd.Position = UDim2.new(0, x, 0, y)
  500. rd.Size = UDim2.new(0, sz.X, 0, sz.Y)
  501. rd.Parent = Write
  502. end
  503.  
  504. return sz
  505. end
  506.  
  507.  
  508. for i = 1, #parsed do
  509. local word = parsed[i]
  510. local str = word.str
  511. local wl = #str
  512. local tx = {}
  513. local last = 1
  514.  
  515. for j = 1, wl do
  516. local c = str:sub(j, j)
  517. if c == '\n' then
  518. local rd = new_frame(str, word.col, last, j - 1)
  519. y = y + rd.Y
  520. x = 0
  521. last = j + 1
  522. elseif j == wl then
  523. local rd = new_frame(str, word.col, last, j)
  524. x = x + rd.X
  525. end
  526. end
  527. end
  528. end
  529.  
  530. local function dispatch_job()
  531. highlight()
  532. end
  533.  
  534. Write:GetPropertyChangedSignal('Text'):Connect(function()
  535. BGExec.CanvasSize = UDim2.new(0, Write.TextBounds.X, 0, Write.TextBounds.Y)
  536. coroutine.wrap(dispatch_job)()
  537. end)
  538.  
  539. coroutine.resume(coroutine.create(function()
  540. local size = BGExec.CanvasPosition;
  541. local floor = math.floor;
  542. local wait = wait;
  543. while wait(1) do
  544. local new = BGExec.CanvasPosition
  545. local vec1 = Vector2.new(size.X, size.Y)
  546. local vec2 = Vector2.new(new.X, new.Y)
  547. local distance = floor((vec1 - vec2).magnitude)
  548.  
  549. if distance > 0 then
  550. coroutine.wrap(dispatch_job)()
  551. end
  552.  
  553. size = new;
  554. end
  555. end))
  556.  
  557.  
  558. local charset = {}
  559.  
  560. function randomLetter()
  561. local rLetter = string.char(math.random(65, 90))
  562. rLetter = math.random() > .5 and rLetter:lower() or rLetter
  563. return rLetter
  564. end
  565.  
  566. function generateRandomSequence(length)
  567. local sequence = ""
  568. for i = 1, length do
  569. sequence = sequence..randomLetter()
  570. end
  571. return sequence
  572. end
  573.  
  574. for Index, Value in next, game:GetDescendants() do
  575. if Value:IsA("LocalScript") or Value:IsA("ModuleScript") then
  576. Frame2.CanvasSize = UDim2.new(2, 0, Index / 100, 0)
  577.  
  578. local ImgLbl = Instance.new("TextLabel")
  579. local F = Instance.new("TextButton")
  580.  
  581. F.Name = generateRandomSequence(3)
  582. F.Parent = Frame2
  583. F.BackgroundColor3 = Color3.new(1, 1, 1)
  584. F.BackgroundTransparency = 1
  585. F.Size = UDim2.new(0, 334,0, 21)
  586. F.Font = Enum.Font.SourceSansSemibold
  587. F.Text = Value.Name
  588. F.TextColor3 = Color3.new(0.831373, 0.831373, 0.831373)
  589. F.TextSize = 14
  590. F.MouseButton1Down:Connect(function()
  591. TitleBar.Text = Value:GetFullName()
  592. Write.Text = ""
  593. Write.Text = decompile(Value)
  594. end)
  595.  
  596. ImgLbl.Name = generateRandomSequence(3)
  597. ImgLbl.Parent = F
  598. ImgLbl.BackgroundColor3 = Color3.new(1, 1, 1)
  599. ImgLbl.BackgroundTransparency = 1
  600. ImgLbl.Size = UDim2.new(0, 80, 0, 21)
  601. ImgLbl.Font = Enum.Font.SourceSansSemibold
  602. ImgLbl.TextSize = 10
  603. ImgLbl.TextColor3 = Color3.new(0.831373, 0.831373, 0.831373)
  604.  
  605. if Value:IsA("ModuleScript") then
  606. ImgLbl.Text = "ModuleScript"
  607. else if Value:IsA("LocalScript") then
  608. ImgLbl.Text = "LocalScript"
  609. end
  610. end
  611. end
  612. end
  613.  
  614. CopyButton.MouseButton1Down:Connect(function()
  615. setclipboard(Write.Text)
  616. end)
  617.  
  618. SaveButton.MouseButton1Down:Connect(function()
  619. writefile(TitleBar.Text..".lua", Write.Text)
  620. end)
Add Comment
Please, Sign In to add comment