LynXS_

Executor Free

Jun 6th, 2024
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.47 KB | None | 0 0
  1. -- Create the ScreenGui
  2. local screenGui = Instance.new("ScreenGui")
  3. screenGui.Name = "ScriptEditorGui"
  4. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  5.  
  6. -- Create the main frame
  7. local mainFrame = Instance.new("Frame")
  8. mainFrame.Size = UDim2.new(0.4, 0, 0.6, 0)
  9. mainFrame.Position = UDim2.new(0.3, 0, 0.2, 0)
  10. mainFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  11. mainFrame.Parent = screenGui
  12.  
  13. -- Create the top bar
  14. local topBar = Instance.new("Frame")
  15. topBar.Size = UDim2.new(1, 0, 0.1, 0)
  16. topBar.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  17. topBar.Parent = mainFrame
  18.  
  19. -- Create the label for the top bar
  20. local topBarLabel = Instance.new("TextLabel")
  21. topBarLabel.Size = UDim2.new(0.8, 0, 1, 0)
  22. topBarLabel.Position = UDim2.new(0.1, 0, 0, 0)
  23. topBarLabel.Text = "Krypton"
  24. topBarLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  25. topBarLabel.BackgroundTransparency = 1
  26. topBarLabel.Parent = topBar
  27.  
  28. -- Create the close button
  29. local closeButton = Instance.new("TextButton")
  30. closeButton.Size = UDim2.new(0.1, 0, 1, 0)
  31. closeButton.Position = UDim2.new(0.9, 0, 0, 0)
  32. closeButton.Text = "X"
  33. closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  34. closeButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0) -- Red background for close button
  35. closeButton.Parent = topBar
  36.  
  37. -- Create the open panel button
  38. local openPanelButton = Instance.new("TextButton")
  39. openPanelButton.Size = UDim2.new(0.1, 0, 1, 0)
  40. openPanelButton.Position = UDim2.new(0, 0, 0, 0)
  41. openPanelButton.Text = ">"
  42. openPanelButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  43. openPanelButton.BackgroundColor3 = Color3.fromRGB(0, 128, 0) -- Light green background for open panel button
  44. openPanelButton.Parent = topBar
  45.  
  46. -- Create the minify button
  47. local minifyButton = Instance.new("TextButton")
  48. minifyButton.Size = UDim2.new(0.1, 0, 1, 0)
  49. minifyButton.Position = UDim2.new(0.8, 0, 0, 0)
  50. minifyButton.Text = "Minify"
  51. minifyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  52. minifyButton.BackgroundColor3 = Color3.fromRGB(0, 128, 0) -- Green background for minify button
  53. minifyButton.Parent = topBar
  54.  
  55. -- Create the script editor text box
  56. local scriptEditor = Instance.new("TextBox")
  57. scriptEditor.Size = UDim2.new(1, -20, 0.7, -10)
  58. scriptEditor.Position = UDim2.new(0, 10, 0.1, 10)
  59. scriptEditor.MultiLine = true
  60. scriptEditor.Text = 'print("Hello World!")'
  61. scriptEditor.TextWrapped = true
  62. scriptEditor.TextXAlignment = Enum.TextXAlignment.Left
  63. scriptEditor.TextYAlignment = Enum.TextYAlignment.Top
  64. scriptEditor.TextColor3 = Color3.fromRGB(255, 255, 255)
  65. scriptEditor.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  66. scriptEditor.Parent = mainFrame
  67.  
  68. -- Create the execute button
  69. local executeButton = Instance.new("TextButton")
  70. executeButton.Size = UDim2.new(0.3, 0, 0.1, 0)
  71. executeButton.Position = UDim2.new(0.05, 0, 0.85, 0)
  72. executeButton.Text = "Execute"
  73. executeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  74. executeButton.BackgroundColor3 = Color3.fromRGB(80, 0, 128)
  75. executeButton.Parent = mainFrame
  76.  
  77. -- Create the clear button
  78. local clearButton = Instance.new("TextButton")
  79. clearButton.Size = UDim2.new(0.3, 0, 0.1, 0)
  80. clearButton.Position = UDim2.new(0.65, 0, 0.85, 0)
  81. clearButton.Text = "Clear Editor"
  82. clearButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  83. clearButton.BackgroundColor3 = Color3.fromRGB(128, 0, 0)
  84. clearButton.Parent = mainFrame
  85.  
  86. -- Create the panel
  87. local panel = Instance.new("Frame")
  88. panel.Size = UDim2.new(0.16, 0, 0.6, 0) -- 20% smaller in width (from 0.2 to 0.16)
  89. panel.Position = UDim2.new(1, 0, 0.2, 0)
  90. panel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  91. panel.Visible = false
  92. panel.Parent = screenGui
  93.  
  94. -- Create the top bar for the panel
  95. local panelTopBar = Instance.new("Frame")
  96. panelTopBar.Size = UDim2.new(1, 0, 0.1, 0)
  97. panelTopBar.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  98. panelTopBar.Parent = panel
  99.  
  100. -- Create the label for the panel top bar
  101. local panelTopBarLabel = Instance.new("TextLabel")
  102. panelTopBarLabel.Size = UDim2.new(1, 0, 1, 0)
  103. panelTopBarLabel.Text = "Extra's"
  104. panelTopBarLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  105. panelTopBarLabel.BackgroundTransparency = 1
  106. panelTopBarLabel.Parent = panelTopBar
  107.  
  108. -- Create the load button inside the panel
  109. local loadButton = Instance.new("TextButton")
  110. loadButton.Size = UDim2.new(0.8, 0, 0.2, 0)
  111. loadButton.Position = UDim2.new(0.1, 0, 0.3, 0)
  112. loadButton.Text = "Load to Executor"
  113. loadButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  114. loadButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80) -- Matching top bar background
  115. loadButton.Parent = panel
  116.  
  117. -- Create the end executor button inside the panel
  118. local endButton = Instance.new("TextButton")
  119. endButton.Size = UDim2.new(0.8, 0, 0.2, 0)
  120. endButton.Position = UDim2.new(0.1, 0, 0.55, 0)
  121. endButton.Text = "Destroy Krypton Executor"
  122. endButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  123. endButton.BackgroundColor3 = Color3.fromRGB(128, 0, 0) -- Matching clear button background
  124. endButton.Parent = panel
  125.  
  126. -- Function to execute the script
  127. local function executeScript()
  128. local scriptText = scriptEditor.Text
  129. local success, message = pcall(function()
  130. loadstring(scriptText)()
  131. end)
  132. if not success then
  133. scriptEditor.Text = "Error executing script: " .. message .. "\n" .. scriptText
  134. end
  135. end
  136.  
  137. -- Function to clear the script editor
  138. local function clearEditor()
  139. scriptEditor.Text = ""
  140. end
  141.  
  142. -- Function to close the entire UI
  143. local function closeUI()
  144. screenGui:Destroy()
  145. end
  146.  
  147. -- Function to open the panel
  148. local function openPanel()
  149. if not panel.Visible then
  150. panel.Visible = true
  151. panel:TweenPosition(UDim2.new(0.84, 0, 0.2, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, 0.5, true)
  152. else
  153. panel:TweenPosition(UDim2.new(1, 0, 0.2, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, 0.5, true)
  154. panel.Visible = false
  155. end
  156. end
  157.  
  158. -- Function to toggle transparency
  159. local function toggleTransparency()
  160. for _, obj in ipairs(mainFrame:GetDescendants()) do
  161. if obj ~= topBar and obj ~= minifyButton then
  162. if obj:IsA("GuiObject") then
  163. obj.BackgroundTransparency = 0.5
  164. end
  165. end
  166. end
  167. end
  168.  
  169. -- Function to restore transparency
  170. local function restoreTransparency()
  171. for _, obj in ipairs(mainFrame:GetDescendants()) do
  172. if obj:IsA("GuiObject") then
  173. obj.BackgroundTransparency = 0
  174. end
  175. end
  176. end
  177.  
  178. -- Function to load text from clipboard
  179. local function loadText()
  180. local clipboardText = game:GetService("GuiService"):GetClipboard()
  181. scriptEditor.Text = clipboardText
  182. end
  183.  
  184. -- Function to toggle UI visibility
  185. local function toggleUIVisibility()
  186. screenGui.Enabled = not screenGui.Enabled
  187. end
  188.  
  189. -- Event listener for right shift key press
  190. game:GetService("UserInputService").InputBegan:Connect(function(input)
  191. if input.KeyCode == Enum.KeyCode.RightShift then
  192. toggleUIVisibility()
  193. end
  194. end)
  195.  
  196. -- Event listener for minify button click
  197. minifyButton.MouseButton1Click:Connect(function()
  198. if mainFrame.BackgroundTransparency == 0 then
  199. toggleTransparency()
  200. else
  201. restoreTransparency()
  202. end
  203. end)
  204.  
  205. -- Connect the buttons to their functions
  206. executeButton.MouseButton1Click:Connect(executeScript)
  207. clearButton.MouseButton1Click:Connect(clearEditor)
  208. closeButton.MouseButton1Click:Connect(closeUI)
  209. openPanelButton.MouseButton1Click:Connect(openPanel)
  210. loadButton.MouseButton1Click:Connect(loadText)
  211. endButton.MouseButton1Click:Connect(closeUI)
  212.  
Advertisement
Add Comment
Please, Sign In to add comment