Advertisement
ERROR_CODE

Executor

Dec 7th, 2023 (edited)
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.25 KB | None | 0 0
  1. local UIGui = Instance.new("ScreenGui")
  2. local UserInputService = game:GetService("UserInputService")
  3. local ExecutorFrame = Instance.new("Frame")
  4. local ExecutorFrameUICorner = Instance.new("UICorner")
  5. local ScriptTextBox = Instance.new("TextBox")
  6. local ScriptTextBoxUICorner = Instance.new("UICorner")
  7. local ScrollingFrameForScriptTextBox = Instance.new("ScrollingFrame")
  8. local ScrollingFrameForScriptTextBoxUICorner = Instance.new("UICorner")
  9. local TextButtonsFrame = Instance.new("Frame")
  10. local TextButtonsFrameUICorner = Instance.new("UICorner")
  11. local ExecuteButton = Instance.new("TextButton")
  12. local ExecuteButtonUICorner = Instance.new("UICorner")
  13. local ClearButton = Instance.new("TextButton")
  14. local ClearButtonUICorner = Instance.new("UICorner")
  15. local CloseExecutorButton = Instance.new("TextButton")
  16. local CloseExecutorButtonUICorner = Instance.new("UICorner")
  17.  
  18. UIGui.Parent = game.CoreGui
  19.  
  20. CloseExecutorButton.Name = "CloseExecutorButton"
  21. CloseExecutorButton.Position = UDim2.new(0.9, 0, 0.02, 0)
  22. CloseExecutorButton.Parent = ExecutorFrame
  23. CloseExecutorButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  24. CloseExecutorButton.BackgroundTransparency = 0.5
  25. CloseExecutorButton.LayoutOrder = 1
  26. CloseExecutorButton.Size = UDim2.new(0, 25, 0, 25)
  27. CloseExecutorButton.AutoButtonColor = false
  28. CloseExecutorButton.Font = Enum.Font.Code
  29. CloseExecutorButton.Text = "X"
  30. CloseExecutorButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  31. CloseExecutorButton.TextScaled = true
  32. CloseExecutorButton.TextSize = 14.000
  33. CloseExecutorButton.TextWrapped = true
  34.  
  35. CloseExecutorButtonUICorner.Parent = CloseExecutorButton
  36.  
  37. CloseExecutorButton.MouseButton1Click:Connect(function()
  38. ExecutorFrame.Visible = false
  39. end)
  40.  
  41. ExecutorFrame.Name = "ExecutorFrame"
  42. ExecutorFrame.Parent = UIGui
  43. ExecutorFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  44. ExecutorFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  45. ExecutorFrame.BackgroundTransparency = 0.5
  46. ExecutorFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  47. ExecutorFrame.Size = UDim2.new(0, 365, 0, 260)
  48.  
  49. ExecutorFrameUICorner.Parent = ExecutorFrame
  50.  
  51. TextButtonsFrame.Name = "TextButtonsFrame"
  52. TextButtonsFrame.Parent = ExecutorFrame
  53. TextButtonsFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  54. TextButtonsFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  55. TextButtonsFrame.BackgroundTransparency = 0.5
  56. TextButtonsFrame.Position = UDim2.new(0.5, 0, 0.85, 0)
  57. TextButtonsFrame.Size = UDim2.new(0, 350, 0, 70)
  58.  
  59. TextButtonsFrameUICorner.Parent = TextButtonsFrame
  60.  
  61. ScriptTextBox.Name = "ScriptTextBox"
  62. ScriptTextBox.Parent = ScrollingFrameForScriptTextBox
  63. ScriptTextBox.BackgroundColor3 = Color3.new(0, 0, 0)
  64. ScriptTextBox.BackgroundTransparency = 0.5
  65. ScriptTextBox.Position = UDim2.new(0, 0, 0, 0)
  66. ScriptTextBox.Size = UDim2.new(0, 340, 0, 1040)
  67. ScriptTextBox.Font = Enum.Font.Code
  68. ScriptTextBox.FontSize = Enum.FontSize.Size18
  69. ScriptTextBox.Text = "print(\"ECCS•Executor V2\")"
  70. ScriptTextBox.TextColor3 = Color3.new(255, 255, 255)
  71. ScriptTextBox.TextTransparency = 0.5
  72. ScriptTextBox.TextSize = 15
  73. ScriptTextBox.TextXAlignment = Enum.TextXAlignment.Left
  74. ScriptTextBox.TextYAlignment = Enum.TextYAlignment.Top
  75. ScriptTextBox.TextWrapped = true
  76.  
  77. ScriptTextBoxUICorner.Parent = ScriptTextBox
  78.  
  79. ExecuteButton.Name = "ExecuteButton"
  80. ExecuteButton.Position = UDim2.new(0.1, 0, 0.15, 0)
  81. ExecuteButton.Parent = TextButtonsFrame
  82. ExecuteButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  83. ExecuteButton.BackgroundTransparency = 0.5
  84. ExecuteButton.LayoutOrder = 1
  85. ExecuteButton.Size = UDim2.new(0, 110, 0, 50)
  86. ExecuteButton.AutoButtonColor = false
  87. ExecuteButton.Font = Enum.Font.Code
  88. ExecuteButton.Text = "Execute"
  89. ExecuteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  90. ExecuteButton.TextSize = 32
  91.  
  92. ExecuteButtonUICorner.Parent = ExecuteButton
  93.  
  94. ExecuteButton.MouseButton1Click:Connect(function()
  95. loadstring(ScriptTextBox.Text)()
  96. end)
  97.  
  98. ClearButton.Name = "ClearButton"
  99. ClearButton.Position = UDim2.new(0.6, 0, 0.15, 0)
  100. ClearButton.Parent = TextButtonsFrame
  101. ClearButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  102. ClearButton.BackgroundTransparency = 0.5
  103. ClearButton.LayoutOrder = 1
  104. ClearButton.Size = UDim2.new(0, 110, 0, 50)
  105. ClearButton.AutoButtonColor = false
  106. ClearButton.Font = Enum.Font.Code
  107. ClearButton.Text = "Clear"
  108. ClearButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  109. ClearButton.TextSize = 32
  110.  
  111. ClearButtonUICorner.Parent = ClearButton
  112.  
  113. ClearButton.MouseButton1Click:Connect(function()
  114. ScriptTextBox.Text = ""
  115. end)
  116.  
  117. ScrollingFrameForScriptTextBox.CanvasSize = UDim2.new(0, 0, 4, 0)
  118. ScrollingFrameForScriptTextBox.ScrollBarImageColor3 = Color3.new(1, 1, 1)
  119. ScrollingFrameForScriptTextBox.ScrollBarThickness = 8
  120. ScrollingFrameForScriptTextBox.Active = true
  121. ScrollingFrameForScriptTextBox.BackgroundColor3 = Color3.new(0, 0, 0)
  122. ScrollingFrameForScriptTextBox.BackgroundTransparency = 1
  123. ScrollingFrameForScriptTextBox.BorderSizePixel = 0
  124. ScrollingFrameForScriptTextBox.Position = UDim2.new(0.03, 0, 0.15, 0)
  125. ScrollingFrameForScriptTextBox.Size = UDim2.new(0.96, 0, 0.5, 0)
  126. ScrollingFrameForScriptTextBox.Name = "ScrollingFrameForScriptTextBox"
  127. ScrollingFrameForScriptTextBox.Parent = ExecutorFrame
  128.  
  129. ScrollingFrameForScriptTextBoxUICorner.Parent = ScrollingFrameForScriptTextBox
  130.  
  131. local gui = ExecutorFrame
  132.  
  133. local dragging
  134. local dragInput
  135. local dragStart
  136. local startPos
  137.  
  138. local function update(input)
  139.     local delta = input.Position - dragStart
  140.     gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  141. end
  142.  
  143. gui.InputBegan:Connect(function(input)
  144.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  145.         dragging = true
  146.         dragStart = input.Position
  147.         startPos = gui.Position
  148.  
  149.         input.Changed:Connect(function()
  150.             if input.UserInputState == Enum.UserInputState.End then
  151.                 dragging = false
  152.             end
  153.         end)
  154.     end
  155. end)
  156.  
  157. gui.InputChanged:Connect(function(input)
  158.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  159.         dragInput = input
  160.     end
  161. end)
  162.  
  163. UserInputService.InputChanged:Connect(function(input)
  164.     if input == dragInput and dragging then
  165.         update(input)
  166.     end
  167. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement