Advertisement
random1754

Executor

Oct 11th, 2023 (edited)
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.61 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local Executor = Instance.new("ScreenGui")
  7. local Main = Instance.new("Frame")
  8. local Title = Instance.new("TextLabel")
  9. local UITextSizeConstraint = Instance.new("UITextSizeConstraint")
  10. local Content = Instance.new("ScrollingFrame")
  11. local Code = Instance.new("TextBox")
  12. local UITextSizeConstraint_2 = Instance.new("UITextSizeConstraint")
  13. local Execute = Instance.new("TextButton")
  14. local UITextSizeConstraint_3 = Instance.new("UITextSizeConstraint")
  15. local Copy = Instance.new("TextButton")
  16. local UITextSizeConstraint_4 = Instance.new("UITextSizeConstraint")
  17. local Clear = Instance.new("TextButton")
  18. local UITextSizeConstraint_5 = Instance.new("UITextSizeConstraint")
  19.  
  20. --Properties:
  21.  
  22. Executor.Name = "Executor"
  23. Executor.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  24. Executor.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  25. Executor.IgnoreGuiInset = true
  26. Executor.ResetOnSpawn = false
  27.  
  28. Main.Name = "Main"
  29. Main.Parent = Executor
  30. Main.Active = true
  31. Main.BackgroundColor3 = Color3.fromRGB(46, 46, 46)
  32. Main.BorderColor3 = Color3.fromRGB(0, 0, 0)
  33. Main.BorderSizePixel = 0
  34. Main.Position = UDim2.new(0.225130886, 0, 0.0761316866, 0)
  35. Main.Selectable = true
  36. Main.Size = UDim2.new(0.549738228, 0, 0.845678985, 0)
  37.  
  38. Title.Name = "Title"
  39. Title.Parent = Main
  40. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  41. Title.BackgroundTransparency = 1.000
  42. Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  43. Title.BorderSizePixel = 0
  44. Title.Position = UDim2.new(0.348299325, 0, 0, 0)
  45. Title.Size = UDim2.new(0.302040815, 0, 0.0875912383, 0)
  46. Title.Font = Enum.Font.Gotham
  47. Title.Text = "Executor"
  48. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  49. Title.TextScaled = true
  50. Title.TextSize = 18.000
  51. Title.TextWrapped = true
  52.  
  53. UITextSizeConstraint.Parent = Title
  54. UITextSizeConstraint.MaxTextSize = 18
  55.  
  56. Content.Name = "Content"
  57. Content.Parent = Main
  58. Content.Active = true
  59. Content.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  60. Content.BorderColor3 = Color3.fromRGB(0, 0, 0)
  61. Content.BorderSizePixel = 0
  62. Content.Position = UDim2.new(0.0176870748, 0, 0.119221412, 0)
  63. Content.Size = UDim2.new(0.964625835, 0, 0.69359386, 0)
  64. Content.CanvasSize = UDim2.new(0, 0, 0, 0)
  65. Content.ScrollBarThickness = 6
  66.  
  67. Code.Name = "Code"
  68. Code.Parent = Content
  69. Code.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
  70. Code.BorderColor3 = Color3.fromRGB(0, 0, 0)
  71. Code.BorderSizePixel = 0
  72. Code.Position = UDim2.new(0, 0, 4.68723051e-08, 0)
  73. Code.Size = UDim2.new(0, 709, 0, 325)
  74. Code.ClearTextOnFocus = false
  75. Code.Font = Enum.Font.Code
  76. Code.MultiLine = true
  77. Code.PlaceholderText = "print(\"Hello world!\")"
  78. Code.Text = ""
  79. Code.TextColor3 = Color3.fromRGB(255, 255, 255)
  80. Code.TextSize = 18.000
  81. Code.TextStrokeTransparency = 0.500
  82. Code.TextXAlignment = Enum.TextXAlignment.Left
  83. Code.TextYAlignment = Enum.TextYAlignment.Top
  84.  
  85. UITextSizeConstraint_2.Parent = Code
  86. UITextSizeConstraint_2.MaxTextSize = 18
  87.  
  88. Execute.Name = "Execute"
  89. Execute.Parent = Main
  90. Execute.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  91. Execute.BorderColor3 = Color3.fromRGB(0, 0, 0)
  92. Execute.BorderSizePixel = 0
  93. Execute.Position = UDim2.new(0.0176870748, 0, 0.84428221, 0)
  94. Execute.Size = UDim2.new(0.296598643, 0, 0.121654503, 0)
  95. Execute.Font = Enum.Font.Gotham
  96. Execute.Text = "Execute"
  97. Execute.TextColor3 = Color3.fromRGB(255, 255, 255)
  98. Execute.TextScaled = true
  99. Execute.TextSize = 18.000
  100. Execute.TextWrapped = true
  101.  
  102. UITextSizeConstraint_3.Parent = Execute
  103. UITextSizeConstraint_3.MaxTextSize = 18
  104.  
  105. Copy.Name = "Copy"
  106. Copy.Parent = Main
  107. Copy.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  108. Copy.BorderColor3 = Color3.fromRGB(0, 0, 0)
  109. Copy.BorderSizePixel = 0
  110. Copy.Position = UDim2.new(0.351020396, 0, 0.84428221, 0)
  111. Copy.Size = UDim2.new(0.296598643, 0, 0.121654503, 0)
  112. Copy.Font = Enum.Font.Gotham
  113. Copy.Text = "Copy"
  114. Copy.TextColor3 = Color3.fromRGB(255, 255, 255)
  115. Copy.TextScaled = true
  116. Copy.TextSize = 18.000
  117. Copy.TextWrapped = true
  118.  
  119. UITextSizeConstraint_4.Parent = Copy
  120. UITextSizeConstraint_4.MaxTextSize = 18
  121.  
  122. Clear.Name = "Clear"
  123. Clear.Parent = Main
  124. Clear.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  125. Clear.BorderColor3 = Color3.fromRGB(0, 0, 0)
  126. Clear.BorderSizePixel = 0
  127. Clear.Position = UDim2.new(0.685714304, 0, 0.84428221, 0)
  128. Clear.Size = UDim2.new(0.296598643, 0, 0.121654503, 0)
  129. Clear.Font = Enum.Font.Gotham
  130. Clear.Text = "Clear"
  131. Clear.TextColor3 = Color3.fromRGB(255, 255, 255)
  132. Clear.TextScaled = true
  133. Clear.TextSize = 18.000
  134. Clear.TextWrapped = true
  135.  
  136. UITextSizeConstraint_5.Parent = Clear
  137. UITextSizeConstraint_5.MaxTextSize = 18
  138.  
  139. -- Scripts:
  140.  
  141. local function ZMADW_fake_script() -- Main.Drag
  142.     local script = Instance.new('LocalScript', Main)
  143.  
  144.     script.Parent.Draggable = true
  145. end
  146. coroutine.wrap(ZMADW_fake_script)()
  147. local function ERXUBX_fake_script() -- Execute.ExecuteCode
  148.     local script = Instance.new('LocalScript', Execute)
  149.  
  150.     script.Parent.MouseButton1Click:Connect(function()
  151.         if script.Parent.Parent.Content.Code.Text ~= "" then
  152.             loadstring(script.Parent.Parent.Content.Code.Text)()
  153.         end
  154.     end)
  155. end
  156. coroutine.wrap(ERXUBX_fake_script)()
  157. local function GTSJY_fake_script() -- Copy.CopyCode
  158.     local script = Instance.new('LocalScript', Copy)
  159.  
  160.     script.Parent.MouseButton1Click:Connect(function()
  161.         if script.Parent.Parent.Content.Code.Text ~= "" then
  162.             setclipboard(script.Parent.Parent.Content.Code.Text)
  163.         end
  164.     end)
  165. end
  166. coroutine.wrap(GTSJY_fake_script)()
  167. local function UCEOE_fake_script() -- Clear.ClearCode
  168.     local script = Instance.new('LocalScript', Clear)
  169.  
  170.     script.Parent.MouseButton1Click:Connect(function()
  171.         script.Parent.Parent.Content.Code.Text = ""
  172.     end)
  173. end
  174. coroutine.wrap(UCEOE_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement