Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("CoreGui"):FindFirstChild("UIGui") then
- game:GetService("CoreGui"):FindFirstChild("UIGui"):Destroy()
- end
- local UIGui = Instance.new("ScreenGui")
- local EditorBackground = Instance.new("Frame")
- local EditorMainFrame = Instance.new("ImageLabel")
- local EditorTextBox = Instance.new("TextBox")
- local ExecuteButtonBackground = Instance.new("Frame")
- local ExecuteButton = Instance.new("TextButton")
- local EditorBackgroundUICorner = Instance.new("UICorner")
- local EditorMainFrameUICorner = Instance.new("UICorner")
- local ExecuteButtonBackgroundUICorner = Instance.new("UICorner")
- local ExecuteButtonUICorner = Instance.new("UICorner")
- local SaveButtonBackground = Instance.new("Frame")
- local SaveButtonBackgroundUICorner = Instance.new("UICorner")
- local SaveButton = Instance.new("TextButton")
- local SaveButtonUICorner = Instance.new("UICorner")
- local ClearButtonBackground = Instance.new("Frame")
- local ClearButtonBackgroundUICorner = Instance.new("UICorner")
- local ClearButton = Instance.new("TextButton")
- local ClearButtonUICorner = Instance.new("UICorner")
- local EditorTextBoxUICorner = Instance.new("UICorner")
- local EditorTextBoxBackgroundUICorner = Instance.new("UICorner")
- local CopyButtonBackground = Instance.new("Frame")
- local CopyButtonBackgroundUICorner = Instance.new("UICorner")
- local CopyButton = Instance.new("TextButton")
- local CopyButtonUICorner = Instance.new("UICorner")
- UIGui.Name = "UIGui"
- UIGui.Parent = game.CoreGui
- game.CoreGui.UIGui.Enabled = true
- EditorBackground.Name = "EditorBackground"
- EditorBackground.Parent = UIGui
- EditorBackground.AnchorPoint = Vector2.new(0.5, 0.5)
- EditorBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- EditorBackground.Position = UDim2.new(0.525, 0, 0.5, 0)
- EditorBackground.Size = UDim2.new(0, 860, 0, 405)
- EditorBackgroundUICorner.CornerRadius = UDim.new(0, 15)
- EditorBackgroundUICorner.Parent = EditorBackground
- EditorMainFrame.Name = "EditorMainFrame"
- EditorMainFrame.Parent = EditorBackground
- EditorMainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- EditorMainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- EditorMainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
- EditorMainFrame.Size = UDim2.new(0, 855, 0, 400)
- EditorMainFrame.Image = "rbxassetid://16109043024"
- EditorMainFrameUICorner.CornerRadius = UDim.new(0, 12)
- EditorMainFrameUICorner.Parent = EditorMainFrame
- EditorTextBox.Name = "EditorTextBox"
- EditorTextBox.Parent = EditorMainFrame
- EditorTextBox.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- EditorTextBox.BackgroundTransparency = 0.2
- EditorTextBox.Position = UDim2.new(0.02, 0, 0.04, 0)
- EditorTextBox.Size = UDim2.new(0, 820, 0, 310)
- EditorTextBox.ClearTextOnFocus = false
- EditorTextBox.Font = Enum.Font.SourceSansBold
- EditorTextBox.PlaceholderText = "print(\"Hello world\")"
- EditorTextBox.Text = ""
- EditorTextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- EditorTextBox.TextTransparency = 0
- EditorTextBox.TextSize = 14.000
- EditorTextBox.TextWrapped = true
- EditorTextBox.TextXAlignment = Enum.TextXAlignment.Left
- EditorTextBox.TextYAlignment = Enum.TextYAlignment.Top
- EditorTextBoxUICorner.CornerRadius = UDim.new(0, 12)
- EditorTextBoxUICorner.Parent = EditorTextBox
- ExecuteButtonBackground.Name = "ExecuteButtonBackground"
- ExecuteButtonBackground.Parent = EditorMainFrame
- ExecuteButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- ExecuteButtonBackground.Position = UDim2.new(0.02, 0, 0.85, 0)
- ExecuteButtonBackground.Size = UDim2.new(0, 195, 0, 55)
- ExecuteButtonBackgroundUICorner.Parent = ExecuteButtonBackground
- ExecuteButtonBackgroundUICorner.CornerRadius = UDim.new(0, 15)
- ClearButtonBackground.Name = "ClearButtonBackground"
- ClearButtonBackground.Parent = EditorMainFrame
- ClearButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- ClearButtonBackground.Position = UDim2.new(0.75, 0, 0.85, 0)
- ClearButtonBackground.Size = UDim2.new(0, 195, 0, 55)
- ClearButtonBackgroundUICorner.Parent = ClearButtonBackground
- ClearButtonBackgroundUICorner.CornerRadius = UDim.new(0, 15)
- SaveButtonBackground.Name = "SaveButtonBackground"
- SaveButtonBackground.Parent = EditorMainFrame
- SaveButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- SaveButtonBackground.Position = UDim2.new(0.506, 0, 0.85, 0)
- SaveButtonBackground.Size = UDim2.new(0, 195, 0, 55)
- SaveButtonBackgroundUICorner.Parent = SaveButtonBackground
- SaveButtonBackgroundUICorner.CornerRadius = UDim.new(0, 15)
- CopyButtonBackground.Name = "CopyButtonBackground"
- CopyButtonBackground.Parent = EditorMainFrame
- CopyButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- CopyButtonBackground.Position = UDim2.new(0.264, 0, 0.85, 0)
- CopyButtonBackground.Size = UDim2.new(0, 195, 0, 55)
- CopyButtonBackgroundUICorner.Parent = CopyButtonBackground
- CopyButtonBackgroundUICorner.CornerRadius = UDim.new(0, 15)
- ExecuteButton.Name = "ExecuteButton"
- ExecuteButton.Parent = ExecuteButtonBackground
- ExecuteButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ExecuteButton.Position = UDim2.new(0.013, 0, 0.05, 0)
- ExecuteButton.Size = UDim2.new(0, 190, 0, 50)
- ExecuteButton.AutoButtonColor = false
- ExecuteButton.Font = Enum.Font.SourceSansBold
- ExecuteButton.Text = "Execute"
- ExecuteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- ExecuteButton.TextSize = 14.000
- ExecuteButton.TextScaled = true
- ExecuteButton.TextWrapped = true
- ExecuteButtonUICorner.CornerRadius = UDim.new(0, 12)
- ExecuteButtonUICorner.Parent = ExecuteButton
- SaveButton.Name = "SaveButton"
- SaveButton.Parent = SaveButtonBackground
- SaveButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- SaveButton.Position = UDim2.new(0.013, 0, 0.05, 0)
- SaveButton.Size = UDim2.new(0, 190, 0, 50)
- SaveButton.AutoButtonColor = false
- SaveButton.Font = Enum.Font.SourceSansBold
- SaveButton.Text = "Save"
- SaveButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- SaveButton.TextSize = 14.000
- SaveButton.TextScaled = true
- SaveButton.TextWrapped = true
- SaveButtonUICorner.CornerRadius = UDim.new(0, 12)
- SaveButtonUICorner.Parent = SaveButton
- CopyButton.Name = "CopyButton"
- CopyButton.Parent = CopyButtonBackground
- CopyButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- CopyButton.Position = UDim2.new(0.013, 0, 0.05, 0)
- CopyButton.Size = UDim2.new(0, 190, 0, 50)
- CopyButton.AutoButtonColor = false
- CopyButton.Font = Enum.Font.SourceSansBold
- CopyButton.Text = "Copy"
- CopyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- CopyButton.TextSize = 14.000
- CopyButton.TextScaled = true
- CopyButton.TextWrapped = true
- CopyButtonUICorner.CornerRadius = UDim.new(0, 12)
- CopyButtonUICorner.Parent = CopyButton
- ClearButton.Name = "ClearButton"
- ClearButton.Parent = ClearButtonBackground
- ClearButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ClearButton.Position = UDim2.new(0.013, 0, 0.05, 0)
- ClearButton.Size = UDim2.new(0, 190, 0, 50)
- ClearButton.AutoButtonColor = false
- ClearButton.Font = Enum.Font.SourceSansBold
- ClearButton.Text = "Clear"
- ClearButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- ClearButton.TextSize = 14.000
- ClearButton.TextScaled = true
- ClearButton.TextWrapped = true
- ClearButtonUICorner.CornerRadius = UDim.new(0, 12)
- ClearButtonUICorner.Parent = ClearButton
- function createfolders(path)
- local pathtbl = string.split(path, "/")
- for i, v in pairs(pathtbl) do
- if i == 1 then
- if not isfolder(v) then
- makefolder(v)
- end
- else
- local newpath = pathtbl[1]
- for i2=2, i-1 do
- newpath = newpath.. "/" ..pathtbl[i2]
- end
- newpath = newpath.. "/" ..v
- if not isfolder(newpath) then
- makefolder(newpath)
- end
- end
- end
- end
- if not isfile("ECCS_V3/CoreSystem/Files/ECCSV3EDITOR.ECCS") and isfolder("ECCS_V3") then
- delfolder("ECCS_V3")
- end
- createfolders("ECCS_V3/CoreSystem/Files")
- if not isfile("ECCS_V3/CoreSystem/Files/ECCSV3EDITOR.ECCS") then
- writefile("ECCS_V3/CoreSystem/Files/ECCSV3EDITOR.ECCS", ""..EditorTextBox.Text)
- end
- ExecuteButton.MouseButton1Click:Connect(function()
- loadstring(EditorTextBox.Text)()
- end)
- CopyButton.MouseButton1Click:Connect(function()
- setclipboard(EditorTextBox.Text)
- end)
- EditorTextBox.FocusLost:Connect(function(enterPressed)
- if enterPressed then
- loadstring(EditorTextBox.Text)()
- end
- end)
- SaveButton.MouseButton1Click:Connect(function()
- writefile("ECCS_V3/CoreSystem/Files/ECCSV3EDITOR.ECCS", ""..EditorTextBox.Text)
- end)
- ClearButton.MouseButton1Click:Connect(function()
- EditorTextBox.Text = ""
- end)
- local ReadECCSV3 = readfile("ECCS_V3/CoreSystem/Files/ECCSV3EDITOR.ECCS")
- EditorTextBox.Text = ""..ReadECCSV3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement