Advertisement
Guest User

Untitled

a guest
Feb 6th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
BNF 2.47 KB | None | 0 0
  1. getgenv().decompilesss = function(scr)
  2.     local f = getscriptfunc(scr)
  3.     local bytes = dumpfunc(f)
  4.     return (bctolua(bytes))
  5. end
  6.  
  7. local GUI = game:GetObjects("rbxassetid://644198267")[1]
  8. GUI.Parent = game.CoreGui
  9.  
  10. local side = GUI:WaitForChild("side")
  11. local main = GUI:WaitForChild("main")
  12.  
  13. -- { Side } --
  14.  
  15. local Console = side:WaitForChild("Console")
  16. local Decompiler = side:WaitForChild("Decompiler")
  17. local Settingss = side:WaitForChild("Settings")
  18.  
  19. -- { Main } --
  20.  
  21. local Decompile = main:WaitForChild("Decompile")
  22. local Console1 = main:WaitForChild("Console")
  23. local Settings = main:WaitForChild("Settings")
  24.  
  25. -- { Decompile } --
  26.  
  27. local scriptname = Decompile:WaitForChild("scriptname")
  28. local copy = Decompile:WaitForChild("copy")
  29. local clear = Decompile:WaitForChild("clear")
  30. local decompilef = Decompile:WaitForChild("decompile")
  31. local export = Decompile:WaitForChild("export")
  32. local scriptpath = Decompile:WaitForChild("scriptpath")
  33. local output1 = Decompile:WaitForChild("output")
  34.  
  35. -- { Console } --
  36.  
  37. scriptpath.TextScaled = true
  38.  
  39. --local output = Console:WaitForChild("output")
  40.  
  41. -- { Settings } --
  42.  
  43. local printconsole = Settings:WaitForChild("printconsole")
  44. local debug1 = Settings:WaitForChild("debug")
  45.  
  46.  
  47. -- { Scripting | Decompile } --
  48.  
  49. copy.MouseButton1Down:connect(function()
  50.     local tocopy = output1.Text
  51.  
  52.     copystr(decompile(tocopy))
  53. end)
  54.  
  55. decompilef.MouseButton1Down:connect(function()
  56.     local path = scriptpath.Text
  57.     output1.Text = decompile(path)
  58. end)
  59.  
  60. export.MouseButton1Down:connect(function()
  61.     local path = scriptpath.Text
  62.     local name = scriptname.Text
  63.    
  64.     writefile(name, decompile(path))
  65. end)
  66.  
  67. clear.MouseButton1Down:connect(function()
  68.     output1.Text = ""
  69. end)
  70.  
  71. -- { Scripting | Console } --
  72.  
  73. -- { Scripting | Settings } --
  74.  
  75. printconsole.MouseButton1Down:connect(function()
  76.     getgenv().printconsole = function(str, r, g, b)
  77.     console_print(str, Color3.new(r, g, b))
  78. end
  79. end)
  80.  
  81. debug1.MouseButton1Down:connect(function()
  82.     table.foreach(get_nil_instances(), print)
  83. end)
  84.  
  85. -- { Scripting | Buttons } --
  86.  
  87. Console.MouseButton1Down:connect(function()
  88.     Decompile.Visible = false
  89.     Settings.Visible = false
  90.     Console.Visible = true
  91. end)
  92.  
  93. Settingss.MouseButton1Down:connect(function()
  94.     Decompile.Visible = false
  95.     Settings.Visible = true
  96.     Console.Visible = false
  97. end)
  98.  
  99. Decompiler.MouseButton1Down:connect(function()
  100.     Decompile.Visible = true
  101.     Settings.Visible = false
  102.     Console.Visible = false
  103. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement