Panel dimensions: 700×400 px Centered on screen with AnchorPoint=(0.5,0.5) and…
- User
Panel dimensions: 700×400 px
Centered on screen with AnchorPoint=(0.5,0.5) and Position=UDim2.new(0.5,0.5,0.5,0.5).
- Background & gradients
Base color: RGB(30,30,30)
Apply a vertical gradient from RGB(30,30,30) (top) to RGB(18,18,18) (bottom).
- Corner radii
Main panel: 8 px radius
Editor box: 6 px radius
- Top bar
Height: 40 px, color RGB(22,22,22), same 8 px top corners.
Title: </> Executor using SourceSansBold, 18 px, color RGB(240,240,240), left-aligned at 12 px margin.
- Icon buttons (from left to right: ▶, 🗑, 👤, ⚙)
Size: 28×28 px each
Evenly spaced: start at 12 px from right edge, then 36 px intervals.
Background transparent, icons tinted natural colors, no extra padding.
- Code editor TextBox
Position: 12 px from left, 52 px from top
Size: fills width minus 24 px total horizontal padding; height fills minus 64 px vertical padding.
Background: RGB(20,20,20), text color RGB(230,230,230), font Code, size 16 px, multiline enabled, no ClearTextOnFocus.
- Link icon
Size: 24×24 px
Positioned at 32 px from bottom and right edges.
- Drag behavior
The top bar must support click-&-drag to reposition the entire panel smoothly.
Use only Roblox Lua APIs (Instance.new, UIGradient, UICorner, etc.). Assign names to each GUI element exactly as in the reference (MainFrame, TopBar, Title, CodeBox, Link, etc.) so it matches an existing style guide.
Output: A single self-contained LocalScript, ready to paste under StarterGui, that recreates the UI with pixel-perfect precision.
Assistant
Here's a self-contained LocalScript that creates the UI you described with pixel-perfect precision:
local script = script local player = game:GetService("Players").LocalPlayer local playerGui = player:WaitForChild("PlayerGui") -- Main Frame local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 700, 0, 400) MainFrame.Position = UDim2.new(0.5, -350, 0.5, -200) -- Centered with AnchorPoint (0.5,0.5) MainFrame.AnchorPoint = Vector2.new(0.5, 0.5) MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) MainFrame.Parent = playerGui -- Gradient for MainFrame local gradient = Instance.new("UIGradient") gradient.Name = "Gradient" gradient.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.fromRGB(30, 30, 30)), ColorSequenceKeypoint.new(1, Color3.fromRGB(18, 18, 18)) } gradient.Rotation = 90 gradient.Parent = MainFrame -- Corner for MainFrame local mainCorner = Instance.new("UICorner") mainCorner.Name = "MainCorner" mainCorner.CornerRadius = UDim.new(0, 8) mainCorner.Parent = MainFrame -- Top Bar local TopBar = Instance.new("Frame") TopBar.Name = "TopBar" TopBar.Size = UDim2.new(1, 0, 0, 40) TopBar.Position = UDim2.new(0, 0, 0, 0) TopBar.BackgroundColor3 = Color3.fromRGB(22, 22, 22) TopBar.Parent = MainFrame -- Top corners for TopBar local topBarCorner = Instance.new("UICorner") topBarCorner.Name = "TopBarCorner" topBarCorner.CornerRadius = UDim.new(0, 8) topBarCorner.Parent = TopBar -- Title local Title = Instance.new("TextLabel") Title.Name = "Title" Title.Size = UDim2.new(0, 200, 1, 0) Title.Position = UDim2.new(0, 12, 0, 0) Title.BackgroundTransparency = 1 Title.Text = "</> Executor" Title.TextColor3 = Color3.fromRGB(240, 240, 240) Title.TextSize = 18 Title.Font = Enum.Font.SourceSansBold Title.TextXAlignment = Enum.TextXAlignment.Left Title.Parent = TopBar -- Icon Buttons Container local iconContainer = Instance.new("Frame") iconContainer.Name = "IconContainer" iconContainer.Size = UDim2.new(0, 150, 1, 0) iconContainer.Position = UDim2.new(1, -12, 0, 0) iconContainer.BackgroundTransparency = 1 iconContainer.Parent = TopBar -- Play Button local PlayButton = Instance.new("ImageButton") PlayButton.Name = "PlayButton" PlayButton.Size = UDim2.new(0, 28, 0, 28) PlayButton.Position = UDim2.new(1, -28, 0.5, -14) PlayButton.AnchorPoint = Vector2.new(1, 0.5) PlayButton.BackgroundTransparency = 1 PlayButton.Image = "rbxassetid://3926305904" -- Play icon PlayButton.ImageRectOffset = Vector2.new(4, 4) PlayButton.ImageRectSize = Vector2.new(24, 24) PlayButton.Parent = iconContainer -- Trash Button local TrashButton = Instance.new("ImageButton") TrashButton.Name = "TrashButton" TrashButton.Size = UDim2.new(0, 28, 0, 28) TrashButton.Position = UDim2.new(1, -64, 0.5, -14) TrashButton.AnchorPoint = Vector2.new(1, 0.5) TrashButton.BackgroundTransparency = 1 TrashButton.Image = "rbxassetid://3926307971" -- Trash icon TrashButton.ImageRectOffset = Vector2.new(4, 4) TrashButton.ImageRectSize = Vector2.new(24, 24) TrashButton.Parent = iconContainer -- User Button local UserButton = Instance.new("ImageButton") UserButton.Name = "UserButton" UserButton.Size = UDim2.new(0, 28, 0, 28) UserButton.Position = UDim2.new(1, -100, 0.5, -14) UserButton.AnchorPoint = Vector2.new(1, 0.5) UserButton.BackgroundTransparency = 1 UserButton.Image = "rbxassetid://3926308936" -- User icon UserButton.ImageRectOffset = Vector2.new(4, 4) UserButton.ImageRectSize = Vector2.new(24, 24) UserButton.Parent = iconContainer -- Settings Button local SettingsButton = Instance.new("ImageButton") SettingsButton.Name = "SettingsButton" SettingsButton.Size = UDim2.new(0, 28, 0, 28) SettingsButton.Position = UDim2.new(1, -136, 0.5, -14) SettingsButton.AnchorPoint = Vector2.new(1, 0.5) SettingsButton.BackgroundTransparency = 1 SettingsButton.Image = "rbxassetid://3926305904" -- Settings icon (placeholder) SettingsButton.ImageRectOffset = Vector2.new(4, 4) SettingsButton.ImageRectSize = Vector2.new(24, 24) SettingsButton.Parent = iconContainer -- Code Editor Box local CodeBox = Instance.new("TextBox") CodeBox.Name = "CodeBox" CodeBox.Size = UDim2.new(1, -24, 1, -64) CodeBox.Position = UDim2.new(0, 12, 0, 52) CodeBox.BackgroundColor3 = Color3.fromRGB(20, 20, 20) CodeBox.TextColor3 = Color3.fromRGB(230, 230, 230) CodeBox.TextSize = 16 CodeBox.Font = Enum.Font.Code CodeBox.Text = "" CodeBox.TextXAlignment = Enum.TextXAlignment.Left CodeBox.TextYAlignment = Enum.TextYAlignment.Top CodeBox.MultiLine = true CodeBox.ClearTextOnFocus = false CodeBox.TextWrapped = true CodeBox.Parent = MainFrame -- Corner for CodeBox local codeBoxCorner = Instance.new("UICorner") codeBoxCorner.Name = "CodeBoxCorner" codeBoxCorner.CornerRadius = UDim.new(0, 6) codeBoxCorner.Parent = CodeBox -- Link Icon local Link = Instance.new("ImageButton") Link.Name = "Link" Link.Size = UDim2.new(0, 24, 0, 24) Link.Position = UDim2.new(1, -32, 1, -32) Link.AnchorPoint = Vector2.new(1, 1) Link.BackgroundTransparency = 1 Link.Image = "rbxassetid://3926305904" -- Link icon (placeholder) Link.ImageRectOffset = Vector2.new(4, 4) Link.ImageRectSize = Vector2.new(24, 24) Link.Parent = MainFrame -- Drag functionality local dragging local dragInput local dragStart local startPos local function update(input) local delta = input.Position - dragStart MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end TopBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = MainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) TopBar.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement then dragInput = input end end) game:GetService("UserInputService").InputChanged:Connect(function(input) if input == dragInput and dragging then update(input) end end)This script creates a complete UI with all the elements you specified:
- A centered main frame with the correct dimensions and gradient
- A top bar with title and icon buttons
- A code editor box with proper styling
- A link icon in the bottom right
- Drag functionality for the top bar
The script uses Roblox's built-in icons for the buttons (you may want to replace the placeholder icon IDs with actual Roblox asset IDs for the specific icons you want). The drag functionality allows the user to move the entire panel by clicking and dragging the top bar.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.