Advertisement
ERROR_CODE

Editor

Jan 23rd, 2024 (edited)
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.43 KB | None | 0 0
  1. if game:GetService("CoreGui"):FindFirstChild("UIGui") then
  2. game:GetService("CoreGui"):FindFirstChild("UIGui"):Destroy()
  3. end
  4. local UIGui = Instance.new("ScreenGui")
  5. local EditorBackground = Instance.new("Frame")
  6. local EditorMainFrame = Instance.new("ImageLabel")
  7. local EditorTextBox = Instance.new("TextBox")
  8. local ExecuteButtonBackground = Instance.new("Frame")
  9. local ExecuteButton = Instance.new("TextButton")
  10. local EditorBackgroundUICorner = Instance.new("UICorner")
  11. local EditorMainFrameUICorner = Instance.new("UICorner")
  12. local ExecuteButtonBackgroundUICorner = Instance.new("UICorner")
  13. local ExecuteButtonUICorner = Instance.new("UICorner")
  14. local SaveButtonBackground = Instance.new("Frame")
  15. local SaveButtonBackgroundUICorner = Instance.new("UICorner")
  16. local SaveButton = Instance.new("TextButton")
  17. local SaveButtonUICorner = Instance.new("UICorner")
  18. local ClearButtonBackground = Instance.new("Frame")
  19. local ClearButtonBackgroundUICorner = Instance.new("UICorner")
  20. local ClearButton = Instance.new("TextButton")
  21. local ClearButtonUICorner = Instance.new("UICorner")
  22. local EditorTextBoxUICorner = Instance.new("UICorner")
  23. local EditorTextBoxBackgroundUICorner = Instance.new("UICorner")
  24. local CopyButtonBackground = Instance.new("Frame")
  25. local CopyButtonBackgroundUICorner = Instance.new("UICorner")
  26. local CopyButton = Instance.new("TextButton")
  27. local CopyButtonUICorner = Instance.new("UICorner")
  28.  
  29. UIGui.Name = "UIGui"
  30. UIGui.Parent = game.CoreGui
  31. game.CoreGui.UIGui.Enabled = true
  32.  
  33. EditorBackground.Name = "EditorBackground"
  34. EditorBackground.Parent = UIGui
  35. EditorBackground.AnchorPoint = Vector2.new(0.5, 0.5)
  36. EditorBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  37. EditorBackground.Position = UDim2.new(0.525, 0, 0.5, 0)
  38. EditorBackground.Size = UDim2.new(0, 860, 0, 405)
  39.  
  40. EditorBackgroundUICorner.CornerRadius = UDim.new(0, 15)
  41. EditorBackgroundUICorner.Parent = EditorBackground
  42.  
  43. EditorMainFrame.Name = "EditorMainFrame"
  44. EditorMainFrame.Parent = EditorBackground
  45. EditorMainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  46. EditorMainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  47. EditorMainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  48. EditorMainFrame.Size = UDim2.new(0, 855, 0, 400)
  49. EditorMainFrame.Image = "rbxassetid://16109043024"
  50.  
  51. EditorMainFrameUICorner.CornerRadius = UDim.new(0, 12)
  52. EditorMainFrameUICorner.Parent = EditorMainFrame
  53.  
  54. EditorTextBox.Name = "EditorTextBox"
  55. EditorTextBox.Parent = EditorMainFrame
  56. EditorTextBox.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  57. EditorTextBox.BackgroundTransparency = 0.2
  58. EditorTextBox.Position = UDim2.new(0.02, 0, 0.04, 0)
  59. EditorTextBox.Size = UDim2.new(0, 820, 0, 310)
  60. EditorTextBox.ClearTextOnFocus = false
  61. EditorTextBox.Font = Enum.Font.SourceSansBold
  62. EditorTextBox.PlaceholderText = "print(\"Hello world\")"
  63. EditorTextBox.Text = ""
  64. EditorTextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  65. EditorTextBox.TextTransparency = 0
  66. EditorTextBox.TextSize = 14.000
  67. EditorTextBox.TextWrapped = true
  68. EditorTextBox.TextXAlignment = Enum.TextXAlignment.Left
  69. EditorTextBox.TextYAlignment = Enum.TextYAlignment.Top
  70.  
  71. EditorTextBoxUICorner.CornerRadius = UDim.new(0, 12)
  72. EditorTextBoxUICorner.Parent = EditorTextBox
  73.  
  74. ExecuteButtonBackground.Name = "ExecuteButtonBackground"
  75. ExecuteButtonBackground.Parent = EditorMainFrame
  76. ExecuteButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  77. ExecuteButtonBackground.Position = UDim2.new(0.02, 0, 0.85, 0)
  78. ExecuteButtonBackground.Size = UDim2.new(0, 195, 0, 55)
  79.  
  80. ExecuteButtonBackgroundUICorner.Parent = ExecuteButtonBackground
  81. ExecuteButtonBackgroundUICorner.CornerRadius = UDim.new(0, 15)
  82.  
  83. ClearButtonBackground.Name = "ClearButtonBackground"
  84. ClearButtonBackground.Parent = EditorMainFrame
  85. ClearButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  86. ClearButtonBackground.Position = UDim2.new(0.75, 0, 0.85, 0)
  87. ClearButtonBackground.Size = UDim2.new(0, 195, 0, 55)
  88.  
  89. ClearButtonBackgroundUICorner.Parent = ClearButtonBackground
  90. ClearButtonBackgroundUICorner.CornerRadius = UDim.new(0, 15)
  91.  
  92. SaveButtonBackground.Name = "SaveButtonBackground"
  93. SaveButtonBackground.Parent = EditorMainFrame
  94. SaveButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  95. SaveButtonBackground.Position = UDim2.new(0.506, 0, 0.85, 0)
  96. SaveButtonBackground.Size = UDim2.new(0, 195, 0, 55)
  97.  
  98. SaveButtonBackgroundUICorner.Parent = SaveButtonBackground
  99. SaveButtonBackgroundUICorner.CornerRadius = UDim.new(0, 15)
  100.  
  101. CopyButtonBackground.Name = "CopyButtonBackground"
  102. CopyButtonBackground.Parent = EditorMainFrame
  103. CopyButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  104. CopyButtonBackground.Position = UDim2.new(0.264, 0, 0.85, 0)
  105. CopyButtonBackground.Size = UDim2.new(0, 195, 0, 55)
  106.  
  107. CopyButtonBackgroundUICorner.Parent = CopyButtonBackground
  108. CopyButtonBackgroundUICorner.CornerRadius = UDim.new(0, 15)
  109.  
  110. ExecuteButton.Name = "ExecuteButton"
  111. ExecuteButton.Parent = ExecuteButtonBackground
  112. ExecuteButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  113. ExecuteButton.Position = UDim2.new(0.013, 0, 0.05, 0)
  114. ExecuteButton.Size = UDim2.new(0, 190, 0, 50)
  115. ExecuteButton.AutoButtonColor = false
  116. ExecuteButton.Font = Enum.Font.SourceSansBold
  117. ExecuteButton.Text = "Execute"
  118. ExecuteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  119. ExecuteButton.TextSize = 14.000
  120. ExecuteButton.TextScaled = true
  121. ExecuteButton.TextWrapped = true
  122.  
  123. ExecuteButtonUICorner.CornerRadius = UDim.new(0, 12)
  124. ExecuteButtonUICorner.Parent = ExecuteButton
  125.  
  126. SaveButton.Name = "SaveButton"
  127. SaveButton.Parent = SaveButtonBackground
  128. SaveButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  129. SaveButton.Position = UDim2.new(0.013, 0, 0.05, 0)
  130. SaveButton.Size = UDim2.new(0, 190, 0, 50)
  131. SaveButton.AutoButtonColor = false
  132. SaveButton.Font = Enum.Font.SourceSansBold
  133. SaveButton.Text = "Save"
  134. SaveButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  135. SaveButton.TextSize = 14.000
  136. SaveButton.TextScaled = true
  137. SaveButton.TextWrapped = true
  138.  
  139. SaveButtonUICorner.CornerRadius = UDim.new(0, 12)
  140. SaveButtonUICorner.Parent = SaveButton
  141.  
  142. CopyButton.Name = "CopyButton"
  143. CopyButton.Parent = CopyButtonBackground
  144. CopyButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  145. CopyButton.Position = UDim2.new(0.013, 0, 0.05, 0)
  146. CopyButton.Size = UDim2.new(0, 190, 0, 50)
  147. CopyButton.AutoButtonColor = false
  148. CopyButton.Font = Enum.Font.SourceSansBold
  149. CopyButton.Text = "Copy"
  150. CopyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  151. CopyButton.TextSize = 14.000
  152. CopyButton.TextScaled = true
  153. CopyButton.TextWrapped = true
  154.  
  155. CopyButtonUICorner.CornerRadius = UDim.new(0, 12)
  156. CopyButtonUICorner.Parent = CopyButton
  157.  
  158. ClearButton.Name = "ClearButton"
  159. ClearButton.Parent = ClearButtonBackground
  160. ClearButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  161. ClearButton.Position = UDim2.new(0.013, 0, 0.05, 0)
  162. ClearButton.Size = UDim2.new(0, 190, 0, 50)
  163. ClearButton.AutoButtonColor = false
  164. ClearButton.Font = Enum.Font.SourceSansBold
  165. ClearButton.Text = "Clear"
  166. ClearButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  167. ClearButton.TextSize = 14.000
  168. ClearButton.TextScaled = true
  169. ClearButton.TextWrapped = true
  170.  
  171. ClearButtonUICorner.CornerRadius = UDim.new(0, 12)
  172. ClearButtonUICorner.Parent = ClearButton
  173.  
  174. function createfolders(path)
  175.  local pathtbl = string.split(path, "/")
  176.  for i, v in pairs(pathtbl) do
  177.   if i == 1 then
  178.    if not isfolder(v) then
  179.     makefolder(v)
  180.    end
  181.   else
  182.    local newpath = pathtbl[1]
  183.    for i2=2, i-1 do
  184.     newpath = newpath.. "/" ..pathtbl[i2]
  185.    end
  186.    newpath = newpath.. "/" ..v
  187.    if not isfolder(newpath) then
  188.     makefolder(newpath)
  189.    end
  190.   end
  191.  end
  192. end
  193.  
  194. if not isfile("ECCS_V3/CoreSystem/Files/ECCSV3EDITOR.ECCS") and isfolder("ECCS_V3") then
  195. delfolder("ECCS_V3")
  196. end
  197.  
  198. createfolders("ECCS_V3/CoreSystem/Files")
  199.  
  200. if not isfile("ECCS_V3/CoreSystem/Files/ECCSV3EDITOR.ECCS") then
  201. writefile("ECCS_V3/CoreSystem/Files/ECCSV3EDITOR.ECCS", ""..EditorTextBox.Text)
  202. end
  203.  
  204. ExecuteButton.MouseButton1Click:Connect(function()
  205. loadstring(EditorTextBox.Text)()
  206. end)
  207.  
  208. CopyButton.MouseButton1Click:Connect(function()
  209. setclipboard(EditorTextBox.Text)
  210. end)
  211.  
  212. EditorTextBox.FocusLost:Connect(function(enterPressed)
  213. if enterPressed then
  214. loadstring(EditorTextBox.Text)()
  215. end
  216. end)
  217.  
  218. SaveButton.MouseButton1Click:Connect(function()
  219. writefile("ECCS_V3/CoreSystem/Files/ECCSV3EDITOR.ECCS", ""..EditorTextBox.Text)
  220. end)
  221.  
  222. ClearButton.MouseButton1Click:Connect(function()
  223. EditorTextBox.Text = ""
  224. end)
  225.  
  226. local ReadECCSV3 = readfile("ECCS_V3/CoreSystem/Files/ECCSV3EDITOR.ECCS")
  227. EditorTextBox.Text = ""..ReadECCSV3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement