-- Trojan Executor - Mit Close Message -- GUI erstellen local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "TrojanExecutor" ScreenGui.ResetOnSpawn = false -- Für Executor Schutz if syn and syn.protect_gui then syn.protect_gui(ScreenGui) ScreenGui.Parent = game:GetService("CoreGui") elseif gethui then ScreenGui.Parent = gethui() else ScreenGui.Parent = game:GetService("CoreGui") end -- ===== HAUPTFENSTER ===== local MainFrame = Instance.new("Frame") MainFrame.Size = UDim2.new(0, 500, 0, 400) MainFrame.Position = UDim2.new(0.5, -250, 0.5, -200) MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 35) MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true MainFrame.ClipsDescendants = true MainFrame.Parent = ScreenGui -- Abgerundete Ecken local Corner = Instance.new("UICorner") Corner.CornerRadius = UDim.new(0, 8) Corner.Parent = MainFrame -- ===== TITELBAR ===== local TitleBar = Instance.new("Frame") TitleBar.Size = UDim2.new(1, 0, 0, 35) TitleBar.BackgroundColor3 = Color3.fromRGB(35, 35, 45) TitleBar.BorderSizePixel = 0 TitleBar.Parent = MainFrame local TitleCorner = Instance.new("UICorner") TitleCorner.CornerRadius = UDim.new(0, 8) TitleCorner.Parent = TitleBar -- Titel local TitleText = Instance.new("TextLabel") TitleText.Size = UDim2.new(1, -40, 1, 0) TitleText.Position = UDim2.new(0, 10, 0, 0) TitleText.BackgroundTransparency = 1 TitleText.Text = "Trojan Executor" TitleText.TextColor3 = Color3.fromRGB(220, 220, 220) TitleText.TextSize = 16 TitleText.Font = Enum.Font.GothamBold TitleText.TextXAlignment = Enum.TextXAlignment.Left TitleText.Parent = TitleBar -- X Button local CloseBtn = Instance.new("TextButton") CloseBtn.Size = UDim2.new(0, 30, 0, 30) CloseBtn.Position = UDim2.new(1, -35, 0.5, -15) CloseBtn.BackgroundTransparency = 1 CloseBtn.Text = "X" CloseBtn.TextColor3 = Color3.fromRGB(255, 100, 100) CloseBtn.TextSize = 18 CloseBtn.Font = Enum.Font.GothamBold CloseBtn.Parent = TitleBar local CloseCorner = Instance.new("UICorner") CloseCorner.CornerRadius = UDim.new(0, 4) CloseCorner.Parent = CloseBtn -- ===== CLOSE MESSAGE VARIABLE ===== local showCloseMessage = true -- ===== EDITOR ===== local EditorFrame = Instance.new("Frame") EditorFrame.Size = UDim2.new(1, -20, 0, 200) EditorFrame.Position = UDim2.new(0, 10, 0, 45) EditorFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 30) EditorFrame.BorderSizePixel = 0 EditorFrame.ClipsDescendants = true EditorFrame.Parent = MainFrame local EditorCorner = Instance.new("UICorner") EditorCorner.CornerRadius = UDim.new(0, 6) EditorCorner.Parent = EditorFrame -- Code Box local CodeBox = Instance.new("TextBox") CodeBox.Size = UDim2.new(1, -10, 1, -10) CodeBox.Position = UDim2.new(0, 5, 0, 5) CodeBox.BackgroundTransparency = 1 CodeBox.Text = "\nprint('Hello World!')" CodeBox.TextColor3 = Color3.fromRGB(220, 220, 220) CodeBox.TextSize = 14 CodeBox.Font = Enum.Font.Code CodeBox.TextXAlignment = Enum.TextXAlignment.Left CodeBox.TextYAlignment = Enum.TextYAlignment.Top CodeBox.ClearTextOnFocus = false CodeBox.MultiLine = true CodeBox.PlaceholderText = "Input" CodeBox.PlaceholderColor3 = Color3.fromRGB(80, 80, 80) CodeBox.Parent = EditorFrame -- ===== CONSOLE ===== local ConsoleFrame = Instance.new("Frame") ConsoleFrame.Size = UDim2.new(1, -20, 0, 80) ConsoleFrame.Position = UDim2.new(0, 10, 0, 255) ConsoleFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 30) ConsoleFrame.BorderSizePixel = 0 ConsoleFrame.ClipsDescendants = true ConsoleFrame.Parent = MainFrame local ConsoleCorner = Instance.new("UICorner") ConsoleCorner.CornerRadius = UDim.new(0, 6) ConsoleCorner.Parent = ConsoleFrame -- Console Header local ConsoleHeader = Instance.new("TextLabel") ConsoleHeader.Size = UDim2.new(1, -10, 0, 20) ConsoleHeader.Position = UDim2.new(0, 5, 0, 2) ConsoleHeader.BackgroundTransparency = 1 ConsoleHeader.Text = "Console" ConsoleHeader.TextColor3 = Color3.fromRGB(150, 150, 150) ConsoleHeader.TextSize = 12 ConsoleHeader.Font = Enum.Font.Gotham ConsoleHeader.TextXAlignment = Enum.TextXAlignment.Left ConsoleHeader.Parent = ConsoleFrame -- Console ScrollingFrame local ConsoleScroll = Instance.new("ScrollingFrame") ConsoleScroll.Size = UDim2.new(1, -10, 1, -25) ConsoleScroll.Position = UDim2.new(0, 5, 0, 22) ConsoleScroll.BackgroundTransparency = 1 ConsoleScroll.BorderSizePixel = 0 ConsoleScroll.ScrollBarThickness = 4 ConsoleScroll.ScrollBarImageColor3 = Color3.fromRGB(60, 120, 255) ConsoleScroll.CanvasSize = UDim2.new(0, 0, 0, 0) ConsoleScroll.AutomaticCanvasSize = Enum.AutomaticSize.Y ConsoleScroll.Parent = ConsoleFrame -- Console Layout local ConsoleLayout = Instance.new("UIListLayout") ConsoleLayout.Parent = ConsoleScroll ConsoleLayout.Padding = UDim.new(0, 2) ConsoleLayout.SortOrder = Enum.SortOrder.LayoutOrder -- ===== BUTTONS UNTER CONSOLE ===== local ButtonBar = Instance.new("Frame") ButtonBar.Size = UDim2.new(1, -20, 0, 40) ButtonBar.Position = UDim2.new(0, 10, 0, 345) ButtonBar.BackgroundTransparency = 1 ButtonBar.Parent = MainFrame -- Execute Button local ExecuteBtn = Instance.new("TextButton") ExecuteBtn.Size = UDim2.new(0, 120, 0, 35) ExecuteBtn.Position = UDim2.new(0, 0, 0.5, -17.5) ExecuteBtn.BackgroundColor3 = Color3.fromRGB(60, 120, 255) ExecuteBtn.Text = "▶ EXECUTE" ExecuteBtn.TextColor3 = Color3.fromRGB(255, 255, 255) ExecuteBtn.TextSize = 14 ExecuteBtn.Font = Enum.Font.GothamBold ExecuteBtn.Parent = ButtonBar local ExecuteCorner = Instance.new("UICorner") ExecuteCorner.CornerRadius = UDim.new(0, 6) ExecuteCorner.Parent = ExecuteBtn -- Clear Button local ClearBtn = Instance.new("TextButton") ClearBtn.Size = UDim2.new(0, 120, 0, 35) ClearBtn.Position = UDim2.new(0, 130, 0.5, -17.5) ClearBtn.BackgroundColor3 = Color3.fromRGB(40, 45, 60) ClearBtn.Text = "🗑 CLEAR" ClearBtn.TextColor3 = Color3.fromRGB(255, 255, 255) ClearBtn.TextSize = 14 ClearBtn.Font = Enum.Font.GothamBold ClearBtn.Parent = ButtonBar local ClearCorner = Instance.new("UICorner") ClearCorner.CornerRadius = UDim.new(0, 6) ClearCorner.Parent = ClearBtn -- Show Later Button local ShowLaterBtn = Instance.new("TextButton") ShowLaterBtn.Size = UDim2.new(0, 100, 0, 35) ShowLaterBtn.Position = UDim2.new(1, -100, 0.5, -17.5) ShowLaterBtn.BackgroundColor3 = Color3.fromRGB(40, 45, 60) ShowLaterBtn.Text = "⚠️ Kill Executor" ShowLaterBtn.TextColor3 = Color3.fromRGB(200, 200, 200) ShowLaterBtn.TextSize = 12 ShowLaterBtn.Font = Enum.Font.Gotham ShowLaterBtn.Parent = ButtonBar local ShowLaterCorner = Instance.new("UICorner") ShowLaterCorner.CornerRadius = UDim.new(0, 6) ShowLaterCorner.Parent = ShowLaterBtn -- ===== CONSOLE FUNKTIONEN ===== local function addToConsole(text, color) local line = Instance.new("TextLabel") line.Size = UDim2.new(1, -10, 0, 18) line.BackgroundTransparency = 1 line.Text = text line.TextColor3 = color or Color3.fromRGB(220, 220, 220) line.TextSize = 12 line.Font = Enum.Font.Code line.TextXAlignment = Enum.TextXAlignment.Left line.Parent = ConsoleScroll -- Auto Scroll task.wait() ConsoleScroll.CanvasPosition = Vector2.new(0, ConsoleScroll.CanvasSize.Y.Offset) end local function clearConsole() for _, child in pairs(ConsoleScroll:GetChildren()) do if child:IsA("TextLabel") then child:Destroy() end end ConsoleScroll.CanvasSize = UDim2.new(0, 0, 0, 0) end -- ===== CLOSE MESSAGE ===== local closeMessageShown = false CloseBtn.MouseButton1Click:Connect(function() if showCloseMessage and not closeMessageShown then closeMessageShown = true -- Haupt-UI verstecken MainFrame.Visible = false -- Close Message Frame local CloseFrame = Instance.new("Frame") CloseFrame.Size = UDim2.new(0, 350, 0, 150) CloseFrame.Position = UDim2.new(0.5, -175, 0.5, -75) CloseFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 40) CloseFrame.BorderSizePixel = 0 CloseFrame.Parent = ScreenGui local CloseFrameCorner = Instance.new("UICorner") CloseFrameCorner.CornerRadius = UDim.new(0, 8) CloseFrameCorner.Parent = CloseFrame -- Warning Icon local WarningIcon = Instance.new("TextLabel") WarningIcon.Size = UDim2.new(0, 40, 0, 40) WarningIcon.Position = UDim2.new(0.5, -20, 0, 15) WarningIcon.BackgroundTransparency = 1 WarningIcon.Text = "⚠️" WarningIcon.TextColor3 = Color3.fromRGB(255, 200, 100) WarningIcon.TextSize = 30 WarningIcon.Font = Enum.Font.GothamBold WarningIcon.Parent = CloseFrame -- Warning Text local WarningText = Instance.new("TextLabel") WarningText.Size = UDim2.new(1, -20, 0, 40) WarningText.Position = UDim2.new(0, 10, 0, 60) WarningText.BackgroundTransparency = 1 WarningText.Text = "And Close the Trojan Executor\nCloset is no save for Files" WarningText.TextColor3 = Color3.fromRGB(255, 255, 255) WarningText.TextSize = 13 WarningText.Font = Enum.Font.Gotham WarningText.TextWrapped = true WarningText.Parent = CloseFrame -- OK Button local OkBtn = Instance.new("TextButton") OkBtn.Size = UDim2.new(0, 100, 0, 30) OkBtn.Position = UDim2.new(0.5, -110, 1, -40) OkBtn.BackgroundColor3 = Color3.fromRGB(60, 120, 255) OkBtn.Text = "OK" OkBtn.TextColor3 = Color3.fromRGB(255, 255, 255) OkBtn.TextSize = 14 OkBtn.Font = Enum.Font.GothamBold OkBtn.Parent = CloseFrame local OkCorner = Instance.new("UICorner") OkCorner.CornerRadius = UDim.new(0, 6) OkCorner.Parent = OkBtn -- Later Button local LaterBtn = Instance.new("TextButton") LaterBtn.Size = UDim2.new(0, 100, 0, 30) LaterBtn.Position = UDim2.new(0.5, 10, 1, -40) LaterBtn.BackgroundColor3 = Color3.fromRGB(40, 45, 60) LaterBtn.Text = "Later" LaterBtn.TextColor3 = Color3.fromRGB(200, 200, 200) LaterBtn.TextSize = 14 LaterBtn.Font = Enum.Font.Gotham LaterBtn.Parent = CloseFrame local LaterCorner = Instance.new("UICorner") LaterCorner.CornerRadius = UDim.new(0, 6) LaterCorner.Parent = LaterBtn -- OK Button Funktion OkBtn.MouseButton1Click:Connect(function() ScreenGui:Destroy() end) -- Later Button Funktion LaterBtn.MouseButton1Click:Connect(function() CloseFrame:Destroy() MainFrame.Visible = true closeMessageShown = false end) -- Show Later Button Funktion ShowLaterBtn.MouseButton1Click:Connect(function() showCloseMessage = false ScreenGui:Destroy() end) else ScreenGui:Destroy() end end) -- ===== EXECUTE FUNKTION ===== ExecuteBtn.MouseButton1Click:Connect(function() local code = CodeBox.Text addToConsole("> Executing code...", Color3.fromRGB(150, 200, 255)) local success, result = pcall(function() loadstring(code)() end) if success then addToConsole("✓ Execution successful", Color3.fromRGB(100, 255, 100)) else addToConsole("✗ Error: " .. tostring(result), Color3.fromRGB(255, 100, 100)) end end) -- ===== CLEAR FUNKTION ===== ClearBtn.MouseButton1Click:Connect(function() CodeBox.Text = "" clearConsole() addToConsole("> Editor and console cleared", Color3.fromRGB(150, 200, 255)) end) -- ===== PRINT HOOK ===== local oldPrint = print print = function(...) local args = {...} local str = "" for i, v in pairs(args) do str = str .. tostring(v) if i < #args then str = str .. " " end end addToConsole(str, Color3.fromRGB(220, 220, 220)) oldPrint(...) end -- Willkommensnachricht addToConsole("=== Trojan Executor ===", Color3.fromRGB(150, 200, 255)) addToConsole("> Ready", Color3.fromRGB(150, 150, 150))