Advertisement
aiden50_70

F2S

Mar 3rd, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.95 KB | None | 0 0
  1. local Player = game:GetService("Players").LocalPlayer
  2. local PlayerGui = Player.PlayerGui
  3.  
  4. local HasSpecial = function(string)
  5. return (string:match("%c") or string:match("%s") or string:match("%p")) ~= nil
  6. end
  7.  
  8. local GetPath = function(Instance)
  9. local Obj = Instance
  10. local string = {}
  11. local temp = {}
  12. local error = false
  13.  
  14. while Obj ~= game do
  15. if Obj == nil then
  16. error = true
  17. break
  18. end
  19. table.insert(temp, Obj.Parent == game and Obj.ClassName or tostring(Obj))
  20. Obj = Obj.Parent
  21. end
  22.  
  23. table.insert(string, "game:GetService(\"" .. temp[#temp] .. "\")")
  24.  
  25. for i = #temp - 1, 1, -1 do
  26. table.insert(string, HasSpecial(temp[i]) and "[\"" .. temp[i] .. "\"]" or "." .. temp[i])
  27. end
  28.  
  29. return (error and "nil -- Path contained an invalid instance" or table.concat(string, ""))
  30. end
  31.  
  32. local Script2File = Instance.new("ScreenGui")
  33. local Main = Instance.new("Frame")
  34. local ScriptsFrame = Instance.new("Frame")
  35. local Scroll = Instance.new("ScrollingFrame")
  36. local Example = Instance.new("TextButton")
  37. local UIListLayout = Instance.new("UIListLayout")
  38. local Ribbon = Instance.new("Frame")
  39. local TextLabel = Instance.new("TextLabel")
  40. local close = Instance.new("TextButton")
  41. local Decompile = Instance.new("TextButton")
  42. local Edit = Instance.new("TextButton")
  43. local EditSource = Instance.new("Frame")
  44. local Edit_2 = Instance.new("ScrollingFrame")
  45. local Ed = Instance.new("TextBox")
  46. local Keywords = Instance.new("TextLabel")
  47. local Globals = Instance.new("TextLabel")
  48. local DecompileResult = Instance.new("Frame")
  49. local DecompileSource = Instance.new("ScrollingFrame")
  50. local Decompiled = Instance.new("TextLabel")
  51. local Keywords_2 = Instance.new("TextLabel")
  52. local Globals_2 = Instance.new("TextLabel")
  53. local View = Instance.new("TextButton")
  54. local Copy = Instance.new("TextButton")
  55. local Clear = Instance.new("TextButton")
  56. local Apply = Instance.new("TextButton")
  57. local Save = Instance.new("TextButton")
  58. --Properties:
  59. Script2File.Name = "Script2File"
  60. Script2File.Parent = game.CoreGui
  61. Script2File.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  62.  
  63. Main.Name = "Main"
  64. Main.Parent = Script2File
  65. Main.Active = true
  66. Main.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  67. Main.Position = UDim2.new(0.0147601496, 0, 0.0226843096, 0)
  68. Main.Size = UDim2.new(0, 748, 0, 410)
  69.  
  70. ScriptsFrame.Name = "ScriptsFrame"
  71. ScriptsFrame.Parent = Main
  72. ScriptsFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  73. ScriptsFrame.BackgroundTransparency = 1
  74. ScriptsFrame.Position = UDim2.new(0, 0, 0.0658536553, 0)
  75. ScriptsFrame.Size = UDim2.new(0, 266, 0, 383)
  76.  
  77. Scroll.Name = "Scroll"
  78. Scroll.Parent = ScriptsFrame
  79. Scroll.BackgroundColor3 = Color3.new(1, 1, 1)
  80. Scroll.BackgroundTransparency = 1
  81. Scroll.Size = UDim2.new(1, 0, 1, 0)
  82. Scroll.BottomImage = "rbxassetid://148970562"
  83. Scroll.MidImage = "rbxassetid://148970562"
  84. Scroll.TopImage = "rbxassetid://148970562"
  85.  
  86. Example.Name = "Example"
  87. Example.Parent = Scroll
  88. Example.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  89. Example.Position = UDim2.new(0.0451127812, 0, 0.02610966, 0)
  90. Example.Size = UDim2.new(0, 222, 0, 26)
  91. Example.Visible = false
  92. Example.Font = Enum.Font.SourceSans
  93. Example.Text = "example"
  94. Example.TextColor3 = Color3.new(1, 1, 1)
  95. Example.TextSize = 16
  96.  
  97. UIListLayout.Parent = ScriptsFrame
  98.  
  99. Ribbon.Name = "Ribbon"
  100. Ribbon.Parent = Main
  101. Ribbon.Active = true
  102. Ribbon.BackgroundColor3 = Color3.new(0.278431, 0.278431, 0.278431)
  103. Ribbon.Size = UDim2.new(0, 748, 0, 27)
  104.  
  105. TextLabel.Parent = Ribbon
  106. TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  107. TextLabel.BackgroundTransparency = 1
  108. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  109. TextLabel.Font = Enum.Font.SourceSans
  110. TextLabel.Text = "S2F"
  111. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  112. TextLabel.TextSize = 22
  113.  
  114. close.Name = "close"
  115. close.Parent = Ribbon
  116. close.BackgroundColor3 = Color3.new(1, 0.215686, 0.254902)
  117. close.Position = UDim2.new(0.946524084, 0, 0, 0)
  118. close.Size = UDim2.new(0, 40, 0, 27)
  119. close.Font = Enum.Font.SourceSans
  120. close.Text = "_"
  121. close.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  122. close.TextSize = 18
  123.  
  124. Decompile.Name = "Decompile"
  125. Decompile.Parent = Main
  126. Decompile.BackgroundColor3 = Color3.new(0.309804, 0.309804, 0.309804)
  127. Decompile.BorderColor3 = Color3.new(0.14902, 1, 0.247059)
  128. Decompile.Position = UDim2.new(0.366310149, 0, 0.0829268321, 0)
  129. Decompile.Size = UDim2.new(0, 158, 0, 28)
  130. Decompile.Font = Enum.Font.SourceSansBold
  131. Decompile.Text = "DECOMPILE SCRIPT"
  132. Decompile.TextColor3 = Color3.new(0.14902, 1, 0.247059)
  133. Decompile.TextSize = 18
  134. Decompile.TextStrokeColor3 = Color3.new(0.14902, 1, 0.247059)
  135.  
  136. Edit.Name = "Edit"
  137. Edit.Parent = Main
  138. Edit.BackgroundColor3 = Color3.new(0.309804, 0.309804, 0.309804)
  139. Edit.BorderColor3 = Color3.new(0.14902, 1, 0.247059)
  140. Edit.Position = UDim2.new(0.637700558, 0, 0.0829268321, 0)
  141. Edit.Size = UDim2.new(0, 158, 0, 28)
  142. Edit.Font = Enum.Font.SourceSansBold
  143. Edit.Text = "EDIT SCRIPT"
  144. Edit.TextColor3 = Color3.new(0.14902, 1, 0.247059)
  145. Edit.TextSize = 18
  146. Edit.TextStrokeColor3 = Color3.new(0.14902, 1, 0.247059)
  147.  
  148. EditSource.Name = "EditSource"
  149. EditSource.Parent = Main
  150. EditSource.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  151. EditSource.ClipsDescendants = true
  152. EditSource.Position = UDim2.new(0.366310149, 0, 0.185365856, 0)
  153. EditSource.Size = UDim2.new(0, 466, 0, 291)
  154. EditSource.Visible = false
  155.  
  156. Edit_2.Name = "Edit"
  157. Edit_2.Parent = EditSource
  158. Edit_2.BackgroundColor3 = Color3.new(1, 1, 1)
  159. Edit_2.BackgroundTransparency = 1
  160. Edit_2.Size = UDim2.new(0, 466, 0, 316)
  161. Edit_2.BottomImage = "rbxassetid://148970562"
  162. Edit_2.MidImage = "rbxassetid://148970562"
  163. Edit_2.TopImage = "rbxassetid://148970562"
  164.  
  165. Ed.Name = "Ed"
  166. Ed.Parent = Edit_2
  167. Ed.BackgroundColor3 = Color3.new(1, 1, 1)
  168. Ed.BackgroundTransparency = 1
  169. Ed.Size = UDim2.new(1, 0, 1, 0)
  170. Ed.ClearTextOnFocus = false
  171. Ed.Font = Enum.Font.SourceSans
  172. Ed.MultiLine = true
  173. Ed.Text = ""
  174. Ed.TextColor3 = Color3.new(0.654902, 0.654902, 0.654902)
  175. Ed.TextSize = 18
  176. Ed.TextXAlignment = Enum.TextXAlignment.Left
  177. Ed.TextYAlignment = Enum.TextYAlignment.Top
  178.  
  179. Keywords.Name = "Keywords"
  180. Keywords.Parent = Ed
  181. Keywords.BackgroundColor3 = Color3.new(1, 1, 1)
  182. Keywords.BackgroundTransparency = 1
  183. Keywords.Size = UDim2.new(1, 0, 1, 0)
  184. Keywords.Font = Enum.Font.SourceSans
  185. Keywords.Text = " "
  186. Keywords.TextColor3 = Color3.new(1, 0, 0.0156863)
  187. Keywords.TextSize = 18
  188. Keywords.TextXAlignment = Enum.TextXAlignment.Left
  189.  
  190. Globals.Name = "Globals"
  191. Globals.Parent = Ed
  192. Globals.BackgroundColor3 = Color3.new(1, 1, 1)
  193. Globals.BackgroundTransparency = 1
  194. Globals.Size = UDim2.new(1, 0, 1, 0)
  195. Globals.Font = Enum.Font.SourceSans
  196. Globals.Text = " "
  197. Globals.TextColor3 = Color3.new(0, 1, 0)
  198. Globals.TextSize = 18
  199. Globals.TextXAlignment = Enum.TextXAlignment.Left
  200.  
  201. DecompileResult.Name = "DecompileResult"
  202. DecompileResult.Parent = Main
  203. DecompileResult.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  204. DecompileResult.ClipsDescendants = true
  205. DecompileResult.Position = UDim2.new(0.366310149, 0, 0.185365856, 0)
  206. DecompileResult.Size = UDim2.new(0, 466, 0, 291)
  207.  
  208. DecompileSource.Name = "DecompileSource"
  209. DecompileSource.Parent = DecompileResult
  210. DecompileSource.BackgroundColor3 = Color3.new(1, 1, 1)
  211. DecompileSource.BackgroundTransparency = 1
  212. DecompileSource.Size = UDim2.new(0, 466, 0, 316)
  213. DecompileSource.BottomImage = "rbxassetid://148970562"
  214. DecompileSource.CanvasPosition = Vector2.new(0, 0.285500526)
  215. DecompileSource.MidImage = "rbxassetid://148970562"
  216. DecompileSource.TopImage = "rbxassetid://148970562"
  217.  
  218. Decompiled.Name = "Decompiled"
  219. Decompiled.Parent = DecompileSource
  220. Decompiled.BackgroundColor3 = Color3.new(1, 1, 1)
  221. Decompiled.BackgroundTransparency = 1
  222. Decompiled.Size = UDim2.new(1, 0, 1, 0)
  223. Decompiled.Font = Enum.Font.SourceSans
  224. Decompiled.Text = " "
  225. Decompiled.TextColor3 = Color3.new(0.737255, 0.737255, 0.737255)
  226. Decompiled.TextSize = 18
  227. Decompiled.TextXAlignment = Enum.TextXAlignment.Left
  228.  
  229. Keywords_2.Name = "Keywords"
  230. Keywords_2.Parent = Decompiled
  231. Keywords_2.BackgroundColor3 = Color3.new(1, 1, 1)
  232. Keywords_2.BackgroundTransparency = 1
  233. Keywords_2.Size = UDim2.new(1, 0, 1, 0)
  234. Keywords_2.Font = Enum.Font.SourceSans
  235. Keywords_2.Text = " "
  236. Keywords_2.TextColor3 = Color3.new(1, 0, 0.0156863)
  237. Keywords_2.TextSize = 18
  238. Keywords_2.TextXAlignment = Enum.TextXAlignment.Left
  239.  
  240. Globals_2.Name = "Globals"
  241. Globals_2.Parent = Decompiled
  242. Globals_2.BackgroundColor3 = Color3.new(1, 1, 1)
  243. Globals_2.BackgroundTransparency = 1
  244. Globals_2.Size = UDim2.new(1, 0, 1, 0)
  245. Globals_2.Font = Enum.Font.SourceSans
  246. Globals_2.Text = " "
  247. Globals_2.TextColor3 = Color3.new(0, 1, 0)
  248. Globals_2.TextSize = 18
  249. Globals_2.TextXAlignment = Enum.TextXAlignment.Left
  250.  
  251. View.Name = "View"
  252. View.Parent = Main
  253. View.BackgroundColor3 = Color3.new(0.309804, 0.309804, 0.309804)
  254. View.BorderColor3 = Color3.new(0.14902, 1, 0.247059)
  255. View.Position = UDim2.new(0.871657729, 0, 0.0829268321, 0)
  256. View.Size = UDim2.new(0, 74, 0, 28)
  257. View.Font = Enum.Font.SourceSansBold
  258. View.Text = "VIEW"
  259. View.TextColor3 = Color3.new(0.14902, 1, 0.247059)
  260. View.TextSize = 18
  261. View.TextStrokeColor3 = Color3.new(0.14902, 1, 0.247059)
  262.  
  263. Copy.Name = "Copy"
  264. Copy.Parent = Main
  265. Copy.BackgroundColor3 = Color3.new(0.309804, 0.309804, 0.309804)
  266. Copy.BorderColor3 = Color3.new(0.745098, 0.745098, 0.745098)
  267. Copy.Position = UDim2.new(0.490641713, 0, 0.914634168, 0)
  268. Copy.Size = UDim2.new(0, 90, 0, 28)
  269. Copy.Visible = false
  270. Copy.Font = Enum.Font.SourceSansBold
  271. Copy.Text = "COPY"
  272. Copy.TextColor3 = Color3.new(0.745098, 0.745098, 0.745098)
  273. Copy.TextSize = 18
  274. Copy.TextStrokeColor3 = Color3.new(0.262745, 0.262745, 0.262745)
  275.  
  276. Clear.Name = "Clear"
  277. Clear.Parent = Main
  278. Clear.BackgroundColor3 = Color3.new(0.309804, 0.309804, 0.309804)
  279. Clear.BorderColor3 = Color3.new(0.745098, 0.745098, 0.745098)
  280. Clear.Position = UDim2.new(0.85799998, 0, 0.915000021, 0)
  281. Clear.Size = UDim2.new(0, 97, 0, 28)
  282. Clear.Visible = false
  283. Clear.Font = Enum.Font.SourceSansBold
  284. Clear.Text = "CLEAR"
  285. Clear.TextColor3 = Color3.new(0.745098, 0.745098, 0.745098)
  286. Clear.TextSize = 18
  287. Clear.TextStrokeColor3 = Color3.new(0.262745, 0.262745, 0.262745)
  288.  
  289. Apply.Name = "Apply"
  290. Apply.Parent = Main
  291. Apply.BackgroundColor3 = Color3.new(0.309804, 0.309804, 0.309804)
  292. Apply.BorderColor3 = Color3.new(0.745098, 0.745098, 0.745098)
  293. Apply.Position = UDim2.new(0.741978586, 0, 0.914634168, 0)
  294. Apply.Size = UDim2.new(0, 80, 0, 28)
  295. Apply.Visible = false
  296. Apply.Font = Enum.Font.SourceSansBold
  297. Apply.Text = "APPLY"
  298. Apply.TextColor3 = Color3.new(0.745098, 0.745098, 0.745098)
  299. Apply.TextSize = 18
  300. Apply.TextStrokeColor3 = Color3.new(0.262745, 0.262745, 0.262745)
  301.  
  302. Save.Name = "Save"
  303. Save.Parent = Main
  304. Save.BackgroundColor3 = Color3.new(0.309804, 0.309804, 0.309804)
  305. Save.BorderColor3 = Color3.new(0.745098, 0, 0)
  306. Save.Position = UDim2.new(0.624331594, 0, 0.914634168, 0)
  307. Save.Size = UDim2.new(0, 79, 0, 28)
  308. Save.Visible = false
  309. Save.Font = Enum.Font.SourceSansBold
  310. Save.Text = "SAVE"
  311. Save.TextColor3 = Color3.new(0.745098, 0, 0)
  312. Save.TextSize = 18
  313. Save.TextStrokeColor3 = Color3.new(0.262745, 0.262745, 0.262745)
  314.  
  315. local Highlight = function(string, keywords)
  316. local K = {}
  317. local S = string
  318. local Token =
  319. {
  320. ["="] = true,
  321. ["."] = true,
  322. [","] = true,
  323. ["("] = true,
  324. [")"] = true,
  325. ["["] = true,
  326. ["]"] = true,
  327. ["{"] = true,
  328. ["}"] = true,
  329. [":"] = true,
  330. ["*"] = true,
  331. ["/"] = true,
  332. ["+"] = true,
  333. ["-"] = true,
  334. ["%"] = true,
  335. [";"] = true,
  336. ["~"] = true
  337. }
  338. for i, v in pairs(keywords) do
  339. K[v] = true
  340. end
  341. S = S:gsub(".", function(c)
  342. if Token[c] ~= nil then
  343. return "\32"
  344. else
  345. return c
  346. end
  347. end)
  348. S = S:gsub("%S+", function(c)
  349. if K[c] ~= nil then
  350. return c
  351. else
  352. return (" "):rep(#c)
  353. end
  354. end)
  355.  
  356. return S
  357. end
  358.  
  359. local hTokens = function(string)
  360. local Token =
  361. {
  362. ["="] = true,
  363. ["."] = true,
  364. [","] = true,
  365. ["("] = true,
  366. [")"] = true,
  367. ["["] = true,
  368. ["]"] = true,
  369. ["{"] = true,
  370. ["}"] = true,
  371. [":"] = true,
  372. ["*"] = true,
  373. ["/"] = true,
  374. ["+"] = true,
  375. ["-"] = true,
  376. ["%"] = true,
  377. [";"] = true,
  378. ["~"] = true
  379. }
  380. local A = ""
  381. string:gsub(".", function(c)
  382. if Token[c] ~= nil then
  383. A = A .. c
  384. elseif c == "\n" then
  385. A = A .. "\n"
  386. elseif c == "\t" then
  387. A = A .. "\t"
  388. else
  389. A = A .. "\32"
  390. end
  391. end)
  392.  
  393. return A
  394. end
  395.  
  396.  
  397. local strings = function(string)
  398. local highlight = ""
  399. local quote = false
  400. string:gsub(".", function(c)
  401. if quote == false and c == "\"" then
  402. quote = true
  403. elseif quote == true and c == "\"" then
  404. quote = false
  405. end
  406. if quote == false and c == "\"" then
  407. highlight = highlight .. "\""
  408. elseif c == "\n" then
  409. highlight = highlight .. "\n"
  410. elseif c == "\t" then
  411. highlight = highlight .. "\t"
  412. elseif quote == true then
  413. highlight = highlight .. c
  414. elseif quote == false then
  415. highlight = highlight .. "\32"
  416. end
  417. end)
  418.  
  419. return highlight
  420. end
  421.  
  422. local comments = function(string)
  423. local ret = ""
  424. string:gsub("[^\r\n]+", function(c)
  425. local comm = false
  426. local i = 0
  427. c:gsub(".", function(n)
  428. i = i + 1
  429. if c:sub(i, i + 1) == "--" then
  430. comm = true
  431. end
  432. if comm == true then
  433. ret = ret .. n
  434. else
  435. ret = ret .. "\32"
  436. end
  437. end)
  438. ret = ret
  439. end)
  440.  
  441. return ret
  442. end
  443. Main.Draggable = true
  444. Globals.TextSize = 15
  445. Globals.Font = 'Code'
  446. Keywords.TextSize = 15
  447. Keywords.Font = 'Code'
  448. Globals_2.TextSize = 15
  449. Globals_2.Font = 'Code'
  450. Keywords_2.TextSize = 15
  451. Keywords_2.Font = 'Code'
  452. Ed.TextSize = 15
  453. Ed.Font = 'Code'
  454. Decompiled.TextSize = 15
  455. Decompiled.Font = 'Code'
  456. local Selected = nil
  457. Script2File.ResetOnSpawn = false
  458. local lua_keywords = {"and", "break", "do", "else", "elseif", "end", "false", "for", "function", "goto", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while"}
  459. local global_env = {"getrawmetatable", "game", "workspace", "script", "math", "string", "table", "print", "wait", "BrickColor", "Color3", "next", "pairs", "ipairs", "select", "unpack", "Instance", "Vector2", "Vector3", "CFrame", "Ray", "UDim2", "Enum", "assert", "error", "warn", "tick", "loadstring", "_G", "shared", "getfenv", "setfenv", "newproxy", "setmetatable", "getmetatable", "os", "debug", "pcall", "ypcall", "xpcall", "rawequal", "rawset", "rawget", "tonumber", "tostring", "type", "typeof", "_VERSION", "coroutine", "delay", "require", "spawn", "LoadLibrary", "settings", "stats", "time", "UserSettings", "version", "Axes", "ColorSequence", "Faces", "ColorSequenceKeypoint", "NumberRange", "NumberSequence", "NumberSequenceKeypoint", "gcinfo", "elapsedTime", "collectgarbage", "PhysicalProperties", "Rect", "Region3", "Region3int16", "UDim", "Vector2int16", "Vector3int16"}
  460. function Highlight_Source()
  461. Globals.Text = Highlight(Ed.Text,global_env)
  462. Keywords.Text = Highlight(Ed.Text,lua_keywords)
  463. Globals_2.Text = Highlight(Decompiled.Text,global_env)
  464. Keywords_2.Text = Highlight(Decompiled.Text,lua_keywords)
  465. strings(Decompiled.Text)
  466. strings(Ed.Text)
  467. comments(Ed.Text)
  468. comments(Decompiled.Text)
  469. DecompileSource.CanvasSize = UDim2.new(0,0,0,20000)
  470. end
  471.  
  472. function Switch_()
  473. DecompileResult.Visible=false
  474. EditSource.Visible=true
  475. Copy.Visible = false
  476. Apply.Visible = true
  477. Save.Visible = false
  478. Copy.Visible = false
  479. Clear.Visible = true
  480. end
  481. function sw2()
  482. DecompileResult.Visible=true
  483. EditSource.Visible=false
  484. Copy.Visible = true
  485. Apply.Visible = false
  486. Save.Visible = true
  487. Clear.Visible = false
  488. end
  489. closed = false
  490. function SaveToLocalFile()
  491. local j = "--Decompiled by R2F\n"
  492. local jj = "--Created by tollepuxis\n"
  493. local jjj = "--Script path: ".. GetPath(Selected).."\n"
  494. local k = j..jj..jjj
  495. local ffs = decompile(Selected)
  496. local hfd = k.. ffs
  497. writefile("//DecompiledScripts/".. Selected.Name.. ".lua",hfd,defaults)
  498. end
  499. function Close()
  500. if closed==false then
  501. closed = true
  502. Main.ClipsDescendants = true
  503. Main:TweenSize(UDim2.new(0,748,0,27),'InOut','Quint',.4)
  504. DecompileResult.Visible = false
  505. EditSource.Visible = false
  506. ScriptsFrame.Visible = false
  507. Decompile.Visible = false
  508. Edit.Visible = false
  509. View.Visible = false
  510. Copy.Visible = false
  511. Save.Visible = false
  512. else
  513. closed = false
  514. Main:TweenSize(UDim2.new(0,748,0,410),'InOut','Quint',.4)
  515. wait(.41)
  516. DecompileResult.Visible = true
  517. EditSource.Visible = false
  518. ScriptsFrame.Visible = true
  519. Decompile.Visible = true
  520. Edit.Visible = true
  521. Main.ClipsDescendants = false
  522. View.Visible = true
  523. end
  524. end
  525. Apply.MouseButton1Click:Connect(function()
  526. loadstring(Ed.Text)()
  527. end)
  528. Decompile.MouseButton1Click:Connect(function()
  529. Decompiled.Text = "Decompiling, please wait..."
  530. local rfdd = decompile(Selected)
  531. local j = "--Decompiled by R2F\n"
  532. local jj = "--Created by tollepuxis\n"
  533. local jjj = "--Script path: ".. GetPath(Selected).."\n"
  534. local k = j..jj..jjj
  535. Decompiled.Text = ''
  536. Ed.Text = ''
  537. Decompiled.Text = k.. rfdd
  538. Highlight_Source()
  539. end)
  540.  
  541. Globals.TextYAlignment = 'Top'
  542. Globals_2.TextYAlignment = 'Top'
  543. Keywords.TextYAlignment = 'Top'
  544. Keywords_2.TextYAlignment = 'Top'
  545. Ed.Changed:Connect(Highlight_Source)
  546. Edit.MouseButton1Click:Connect(Switch_)
  547. View.MouseButton1Click:Connect(sw2)
  548. close.MouseButton1Click:Connect(Close)
  549.  
  550. --getting all the locals and modules
  551.  
  552. local modules, locals = {},{}
  553.  
  554. function Scan(obj)
  555. for i,v in pairs(obj) do
  556. if v:IsA("ModuleScript") then
  557. table.insert(modules,v)
  558. elseif v:isA("LocalScript") then
  559. table.insert(locals,v)
  560. end
  561. Scan(v:GetChildren())
  562. end
  563. end
  564.  
  565. Scan(workspace:GetChildren())
  566. Scan(game:GetService("ReplicatedStorage"):GetChildren())
  567. Scan(Player:GetChildren())
  568.  
  569. for f,x in pairs(modules) do
  570. local new = Example:Clone()
  571. new.Visible = true
  572. new.Parent = Scroll
  573. new.Text = x.Name
  574. new.Position = UDim2.new(0,0,0,f * 30)
  575. new.MouseButton1Click:Connect(function()
  576. Selected = x
  577. end)
  578. end
  579.  
  580.  
  581. for f,x in pairs(locals) do
  582. local new = Example:Clone()
  583. new.Visible = true
  584. new.Parent = Scroll
  585. new.Text = x.Name
  586. new.Position = UDim2.new(0,0,0,f * 30)
  587. new.MouseButton1Click:Connect(function()
  588. Selected = x
  589. end)
  590. end
  591.  
  592.  
  593. Ed.TextYAlignment = 'Top'
  594. Decompiled.TextYAlignment = 'Top'
  595. sw2()
  596. Clear.MouseButton1Click:Connect(function()
  597. Ed.Text = ''
  598. end)
  599. Copy.MouseButton1Click:Connect(function()
  600. setclipboard(Decompiled.Text)
  601. end)
  602. Save.MouseButton1Click:Connect(SaveToLocalFile)
  603.  
  604. DecompileSource.CanvasSize = UDim2.new(0,0,0,20000)
  605. Edit_2.CanvasSize = UDim2.new(0,0,0,20000)
  606. Scroll.CanvasSize = UDim2.new(0,0,0,20000)
  607.  
  608. Apply.Text = 'EXECUTE'
  609. Edit.Text = "EXECUTION"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement