Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UIGui = Instance.new("ScreenGui")
- local UserInputService = game:GetService("UserInputService")
- local ExecutorFrame = Instance.new("Frame")
- local ExecutorFrameUICorner = Instance.new("UICorner")
- local ScriptTextBox = Instance.new("TextBox")
- local ScriptTextBoxUICorner = Instance.new("UICorner")
- local ScrollingFrameForScriptTextBox = Instance.new("ScrollingFrame")
- local ScrollingFrameForScriptTextBoxUICorner = Instance.new("UICorner")
- local TextButtonsFrame = Instance.new("Frame")
- local TextButtonsFrameUICorner = Instance.new("UICorner")
- local ExecuteButton = Instance.new("TextButton")
- local ExecuteButtonUICorner = Instance.new("UICorner")
- local ClearButton = Instance.new("TextButton")
- local ClearButtonUICorner = Instance.new("UICorner")
- local CloseExecutorButton = Instance.new("TextButton")
- local CloseExecutorButtonUICorner = Instance.new("UICorner")
- UIGui.Parent = game.CoreGui
- CloseExecutorButton.Name = "CloseExecutorButton"
- CloseExecutorButton.Position = UDim2.new(0.9, 0, 0.02, 0)
- CloseExecutorButton.Parent = ExecutorFrame
- CloseExecutorButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- CloseExecutorButton.BackgroundTransparency = 0.5
- CloseExecutorButton.LayoutOrder = 1
- CloseExecutorButton.Size = UDim2.new(0, 25, 0, 25)
- CloseExecutorButton.AutoButtonColor = false
- CloseExecutorButton.Font = Enum.Font.Code
- CloseExecutorButton.Text = "X"
- CloseExecutorButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- CloseExecutorButton.TextScaled = true
- CloseExecutorButton.TextSize = 14.000
- CloseExecutorButton.TextWrapped = true
- CloseExecutorButtonUICorner.Parent = CloseExecutorButton
- CloseExecutorButton.MouseButton1Click:Connect(function()
- ExecutorFrame.Visible = false
- end)
- ExecutorFrame.Name = "ExecutorFrame"
- ExecutorFrame.Parent = UIGui
- ExecutorFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- ExecutorFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ExecutorFrame.BackgroundTransparency = 0.5
- ExecutorFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
- ExecutorFrame.Size = UDim2.new(0, 365, 0, 260)
- ExecutorFrameUICorner.Parent = ExecutorFrame
- TextButtonsFrame.Name = "TextButtonsFrame"
- TextButtonsFrame.Parent = ExecutorFrame
- TextButtonsFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- TextButtonsFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- TextButtonsFrame.BackgroundTransparency = 0.5
- TextButtonsFrame.Position = UDim2.new(0.5, 0, 0.85, 0)
- TextButtonsFrame.Size = UDim2.new(0, 350, 0, 70)
- TextButtonsFrameUICorner.Parent = TextButtonsFrame
- ScriptTextBox.Name = "ScriptTextBox"
- ScriptTextBox.Parent = ScrollingFrameForScriptTextBox
- ScriptTextBox.BackgroundColor3 = Color3.new(0, 0, 0)
- ScriptTextBox.BackgroundTransparency = 0.5
- ScriptTextBox.Position = UDim2.new(0, 0, 0, 0)
- ScriptTextBox.Size = UDim2.new(0, 340, 0, 1040)
- ScriptTextBox.Font = Enum.Font.Code
- ScriptTextBox.FontSize = Enum.FontSize.Size18
- ScriptTextBox.Text = "print(\"ECCS•Executor V2\")"
- ScriptTextBox.TextColor3 = Color3.new(255, 255, 255)
- ScriptTextBox.TextTransparency = 0.5
- ScriptTextBox.TextSize = 15
- ScriptTextBox.TextXAlignment = Enum.TextXAlignment.Left
- ScriptTextBox.TextYAlignment = Enum.TextYAlignment.Top
- ScriptTextBox.TextWrapped = true
- ScriptTextBoxUICorner.Parent = ScriptTextBox
- ExecuteButton.Name = "ExecuteButton"
- ExecuteButton.Position = UDim2.new(0.1, 0, 0.15, 0)
- ExecuteButton.Parent = TextButtonsFrame
- ExecuteButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ExecuteButton.BackgroundTransparency = 0.5
- ExecuteButton.LayoutOrder = 1
- ExecuteButton.Size = UDim2.new(0, 110, 0, 50)
- ExecuteButton.AutoButtonColor = false
- ExecuteButton.Font = Enum.Font.Code
- ExecuteButton.Text = "Execute"
- ExecuteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- ExecuteButton.TextSize = 32
- ExecuteButtonUICorner.Parent = ExecuteButton
- ExecuteButton.MouseButton1Click:Connect(function()
- loadstring(ScriptTextBox.Text)()
- end)
- ClearButton.Name = "ClearButton"
- ClearButton.Position = UDim2.new(0.6, 0, 0.15, 0)
- ClearButton.Parent = TextButtonsFrame
- ClearButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ClearButton.BackgroundTransparency = 0.5
- ClearButton.LayoutOrder = 1
- ClearButton.Size = UDim2.new(0, 110, 0, 50)
- ClearButton.AutoButtonColor = false
- ClearButton.Font = Enum.Font.Code
- ClearButton.Text = "Clear"
- ClearButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- ClearButton.TextSize = 32
- ClearButtonUICorner.Parent = ClearButton
- ClearButton.MouseButton1Click:Connect(function()
- ScriptTextBox.Text = ""
- end)
- ScrollingFrameForScriptTextBox.CanvasSize = UDim2.new(0, 0, 4, 0)
- ScrollingFrameForScriptTextBox.ScrollBarImageColor3 = Color3.new(1, 1, 1)
- ScrollingFrameForScriptTextBox.ScrollBarThickness = 8
- ScrollingFrameForScriptTextBox.Active = true
- ScrollingFrameForScriptTextBox.BackgroundColor3 = Color3.new(0, 0, 0)
- ScrollingFrameForScriptTextBox.BackgroundTransparency = 1
- ScrollingFrameForScriptTextBox.BorderSizePixel = 0
- ScrollingFrameForScriptTextBox.Position = UDim2.new(0.03, 0, 0.15, 0)
- ScrollingFrameForScriptTextBox.Size = UDim2.new(0.96, 0, 0.5, 0)
- ScrollingFrameForScriptTextBox.Name = "ScrollingFrameForScriptTextBox"
- ScrollingFrameForScriptTextBox.Parent = ExecutorFrame
- ScrollingFrameForScriptTextBoxUICorner.Parent = ScrollingFrameForScriptTextBox
- local gui = ExecutorFrame
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement