local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "PhantomExecutorUI" screenGui.ResetOnSpawn = false screenGui.Parent = playerGui local function randomSize(minX, maxX, minY, maxY) return UDim2.new(0, math.random(minX, maxX), 0, math.random(minY, maxY)) end local executorFrame = Instance.new("Frame") executorFrame.Name = "ExecutorFrame" executorFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) executorFrame.Size = randomSize(300, 400, 180, 240) executorFrame.Position = UDim2.new(0.5, -executorFrame.Size.X.Offset / 2, 0.3, 0) executorFrame.AnchorPoint = Vector2.new(0.5, 0) executorFrame.Active = true executorFrame.Draggable = true executorFrame.Parent = screenGui local titleLabel = Instance.new("TextLabel") titleLabel.Text = "PhantomRunner v1.0" titleLabel.Size = UDim2.new(1, 0, 0, 30) titleLabel.BackgroundColor3 = Color3.fromRGB(45, 45, 45) titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) titleLabel.Font = Enum.Font.GothamBold titleLabel.TextScaled = true titleLabel.Parent = executorFrame local scriptBox = Instance.new("TextBox") scriptBox.MultiLine = true scriptBox.ClearTextOnFocus = false scriptBox.Text = "-- Enter your script here" scriptBox.Size = UDim2.new(1, -10, 1, -90) scriptBox.Position = UDim2.new(0, 5, 0, 35) scriptBox.TextWrapped = true scriptBox.TextXAlignment = Enum.TextXAlignment.Left scriptBox.TextYAlignment = Enum.TextYAlignment.Top scriptBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50) scriptBox.TextColor3 = Color3.fromRGB(255, 255, 255) scriptBox.Font = Enum.Font.Code scriptBox.TextSize = 14 scriptBox.Parent = executorFrame local function createButton(text, posX, callback) local button = Instance.new("TextButton") button.Text = text button.Size = randomSize(80, 100, 30, 40) button.Position = UDim2.new(0, posX, 1, -button.Size.Y.Offset - 5) button.BackgroundColor3 = Color3.fromRGB(60, 60, 60) button.TextColor3 = Color3.fromRGB(255, 255, 255) button.Font = Enum.Font.Gotham button.TextScaled = true button.Parent = executorFrame button.MouseButton1Click:Connect(callback) return button end createButton("Execute", 10, function() local scriptText = scriptBox.Text local success, err = pcall(function() loadstring(scriptText)() end) if not success then warn("Execution error: " .. tostring(err)) end end) createButton("Clear", 120, function() scriptBox.Text = "" end) local autoExec = false createButton("Auto Exec", 230, function() autoExec = not autoExec end) scriptBox:GetPropertyChangedSignal("Text"):Connect(function() if autoExec then pcall(function() loadstring(scriptBox.Text)() end) end end)