local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local HttpService = game:GetService("HttpService") local Player = Players.LocalPlayer local PlayerGui = Player:WaitForChild("PlayerGui") local Theme = { Bg = Color3.fromRGB(5, 5, 5), Panel = Color3.fromRGB(12, 12, 12), Card = Color3.fromRGB(20, 20, 20), Line = Color3.fromRGB(40, 40, 40), Accent = Color3.fromRGB(0, 210, 255), AccentDim = Color3.fromRGB(0, 90, 140), Text = Color3.fromRGB(240, 240, 240), Dim = Color3.fromRGB(140, 140, 140), Green = Color3.fromRGB(0, 255, 120), Red = Color3.fromRGB(255, 60, 100), Yellow = Color3.fromRGB(255, 200, 50), } local FONT_TITLE = Enum.Font.GothamBold local FONT = Enum.Font.GothamMedium local FONT_BOLD = Enum.Font.GothamBold local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "Xeno" ScreenGui.ResetOnSpawn = false ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling ScreenGui.Parent = PlayerGui local function make(class, props, parent) local o = Instance.new(class) if class == "TextLabel" or class == "TextButton" or class == "TextBox" then o.AutoLocalize = false end for k, v in pairs(props) do o[k] = v end if parent then o.Parent = parent end return o end local function corner(o, r) return make("UICorner", {CornerRadius = UDim.new(0, r)}, o) end local function stroke(o, color, thickness, transparency) return make("UIStroke", {Color = color, Thickness = thickness or 1, Transparency = transparency or 0, ApplyStrokeMode = Enum.ApplyStrokeMode.Border}, o) end local function addNeonBorder(o, r, c1, c2) corner(o, r) local s = stroke(o, c1, 1.5, 0.1) if c2 then make("UIGradient", {Color = ColorSequence.new(c1, c2), Rotation = 45}, s) end end local function nextOrder(parent) local n = (parent:GetAttribute("_n") or 0) + 1 parent:SetAttribute("_n", n) return n end local function LoadExecutor() local MainButton = make("ImageButton", {Name = "MainButton", Size = UDim2.new(0, 60, 0, 60), Position = UDim2.new(1, -80, 0.5, -30), BackgroundColor3 = Theme.Bg, BorderSizePixel = 0, Image = "rbxthumb://type=Asset&id=204763559&w=150&h=150", ScaleType = Enum.ScaleType.Fit, Active = true, Visible = false, ZIndex = 100}, ScreenGui) addNeonBorder(MainButton, 16, Theme.Accent, Theme.AccentDim) make("UIPadding", {PaddingTop=UDim.new(0,8), PaddingBottom=UDim.new(0,8), PaddingLeft=UDim.new(0,8), PaddingRight=UDim.new(0,8)}, MainButton) local cam = workspace.CurrentCamera local vp = cam and cam.ViewportSize or Vector2.new(1280, 720) local baseScale = math.clamp(math.min((vp.X - 24) / 700, (vp.Y - 90) / 430), 0.5, 1) local MainFrame = make("Frame", {Name = "MainFrame", Size = UDim2.new(0, 700, 0, 430), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(0.5, 0, 0.5, 10), BackgroundColor3 = Theme.Bg, BorderSizePixel = 0, Visible = true, Active = true, Draggable = true, ClipsDescendants = true}, ScreenGui) addNeonBorder(MainFrame, 10, Theme.Accent, Theme.AccentDim) local uiScale = make("UIScale", {Scale = baseScale}, MainFrame) local Backdrop = make("Frame", {Size = UDim2.new(1, 0, 1, 0), BackgroundColor3 = Theme.Bg, BorderSizePixel = 0, ZIndex = 0}, MainFrame) corner(Backdrop, 10) make("UIGradient", {Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(15, 15, 20)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))}), Rotation = 135}, Backdrop) local Header = make("Frame", {Size = UDim2.new(1, 0, 0, 60), BackgroundColor3 = Theme.Panel, BackgroundTransparency = 0.2, BorderSizePixel = 0, ZIndex = 3}, MainFrame) make("TextLabel", {Size = UDim2.new(1, -120, 0, 28), Position = UDim2.new(0, 24, 0, 8), BackgroundTransparency = 1, Text = "Xeno", Font = FONT_TITLE, TextSize = 24, TextColor3 = Theme.Text, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 4}, Header) make("TextLabel", {Size = UDim2.new(1, -120, 0, 14), Position = UDim2.new(0, 24, 0, 36), BackgroundTransparency = 1, Text = "V 1 . 0 · P R O", Font = FONT, TextSize = 10, TextColor3 = Theme.Accent, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 4}, Header) local CloseBtn = make("TextButton", {Size = UDim2.new(0, 30, 0, 30), Position = UDim2.new(1, -46, 0, 15), BackgroundColor3 = Theme.Card, BackgroundTransparency = 0.2, Text = "", AutoButtonColor = false, ZIndex = 5}, Header) corner(CloseBtn, 8); stroke(CloseBtn, Theme.Line, 1, 0.1) for _, rot in ipairs({45, -45}) do corner(make("Frame", {Size = UDim2.new(0, 14, 0, 2), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(0.5, 0, 0.5, 0), Rotation = rot, BackgroundColor3 = Theme.Dim, BorderSizePixel = 0, ZIndex = 6}, CloseBtn), 1) end CloseBtn.MouseButton1Click:Connect(function() MainFrame.Visible = false; MainButton.Visible = true end) local hl = make("Frame", {Size = UDim2.new(1, -40, 0, 1), Position = UDim2.new(0, 20, 0, 60), BackgroundColor3 = Theme.Accent, ZIndex = 3, BorderSizePixel=0}, MainFrame) make("UIGradient", {Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.5, 0), NumberSequenceKeypoint.new(1, 1)})}, hl) local SIDE_W, TOP_H = 180, 64 make("Frame", {Size = UDim2.new(0, SIDE_W, 1, -TOP_H), Position = UDim2.new(0, 0, 0, TOP_H), BackgroundColor3 = Theme.Panel, BackgroundTransparency = 0.3, BorderSizePixel = 0, ZIndex = 1}, MainFrame) local Side = make("ScrollingFrame", {Position = UDim2.new(0, 0, 0, TOP_H + 12), Size = UDim2.new(0, SIDE_W, 1, -(TOP_H + 12)), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 0, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, ZIndex = 2}, MainFrame) make("UIListLayout", {Padding = UDim.new(0, 6), SortOrder = Enum.SortOrder.LayoutOrder, HorizontalAlignment = Enum.HorizontalAlignment.Center}, Side) make("UIPadding", {PaddingTop = UDim.new(0, 4), PaddingBottom = UDim.new(0, 10)}, Side) local sideLine = make("Frame", {Size = UDim2.new(0, 1, 1, -TOP_H - 16), Position = UDim2.new(0, SIDE_W, 0, TOP_H + 8), BackgroundColor3 = Theme.Line, ZIndex = 2, BorderSizePixel=0}, MainFrame) make("UIGradient", {Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.5, 0), NumberSequenceKeypoint.new(1, 1)}), Rotation=90}, sideLine) local Content = make("Frame", {Position = UDim2.new(0, SIDE_W + 1, 0, TOP_H), Size = UDim2.new(1, -(SIDE_W + 1), 1, -TOP_H), BackgroundColor3 = Theme.Bg, BackgroundTransparency = 1, BorderSizePixel = 0, ClipsDescendants = true, ZIndex = 1}, MainFrame) local panels = {} local function NewPanel(name) local p = make("ScrollingFrame", {Name = name, Size = UDim2.new(1, 0, 1, 0), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 4, ScrollBarImageColor3 = Theme.Accent, ScrollBarImageTransparency = 0.2, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, Visible = false}, Content) make("UIListLayout", {Padding = UDim.new(0, 10), SortOrder = Enum.SortOrder.LayoutOrder}, p) make("UIPadding", {PaddingTop = UDim.new(0, 14), PaddingBottom = UDim.new(0, 16), PaddingLeft = UDim.new(0, 20), PaddingRight = UDim.new(0, 20)}, p) panels[name] = p return p end local function Section(parent, text) local f = make("Frame", {Size = UDim2.new(1, 0, 0, 26), BackgroundTransparency = 1, LayoutOrder = nextOrder(parent)}, parent) make("TextLabel", {Size = UDim2.new(1, 0, 0, 22), BackgroundTransparency = 1, Text = text, Font = FONT_TITLE, TextSize = 18, TextColor3 = Theme.Text, TextXAlignment = Enum.TextXAlignment.Left}, f) local l = make("Frame", {Size = UDim2.new(1, 0, 0, 1), Position = UDim2.new(0, 0, 1, -2), BackgroundColor3 = Theme.Accent, BorderSizePixel=0}, f) make("UIGradient", {Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})}, l) return f end local EditorPanel = NewPanel("EDITOR") Section(EditorPanel, "LUA EDITOR") local EditorFrame = make("Frame", {Size = UDim2.new(1, 0, 0, 250), BackgroundColor3 = Theme.Card, BorderSizePixel = 0, LayoutOrder = nextOrder(EditorPanel)}, EditorPanel) addNeonBorder(EditorFrame, 8, Theme.Line, Theme.Accent) local CodeBox = make("TextBox", {Size = UDim2.new(1, -24, 1, -24), Position = UDim2.new(0, 12, 0, 12), BackgroundTransparency = 1, Text = '-- Write your script here\nprint("Hello from Xeno")', TextColor3 = Theme.Accent, PlaceholderText = "-- Write your Lua code here...", PlaceholderColor3 = Theme.Dim, Font = Enum.Font.Code, TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top, MultiLine = true, ClearTextOnFocus = false}, EditorFrame) local ButtonContainer = make("Frame", {Size = UDim2.new(1, 0, 0, 40), BackgroundTransparency = 1, LayoutOrder = nextOrder(EditorPanel)}, EditorPanel) make("UIListLayout", {FillDirection = Enum.FillDirection.Horizontal, Padding = UDim.new(0, 10), SortOrder = Enum.SortOrder.LayoutOrder}, ButtonContainer) local ExecBtn = make("TextButton", {Size = UDim2.new(0.5, -5, 1, 0), BackgroundColor3 = Theme.Accent, Text = "EXECUTE", Font = FONT_BOLD, TextSize = 14, TextColor3 = Theme.Bg, AutoButtonColor = false, LayoutOrder = 1}, ButtonContainer) corner(ExecBtn, 8) local SaveBtn = make("TextButton", {Size = UDim2.new(0.5, -5, 1, 0), BackgroundColor3 = Theme.Card, Text = "SAVE SCRIPT", Font = FONT_BOLD, TextSize = 14, TextColor3 = Theme.Accent, AutoButtonColor = false, LayoutOrder = 2}, ButtonContainer) corner(SaveBtn, 8); addNeonBorder(SaveBtn, 8, Theme.Line, Theme.AccentDim) local ConsolePanel = NewPanel("CONSOLE") Section(ConsolePanel, "CONSOLE") local ConsoleFrame = make("Frame", {Size = UDim2.new(1, 0, 0, 280), BackgroundColor3 = Theme.Card, BorderSizePixel = 0, LayoutOrder = nextOrder(ConsolePanel)}, ConsolePanel) addNeonBorder(ConsoleFrame, 8, Theme.Line, Theme.Accent) local ConsoleScroll = make("ScrollingFrame", {Size = UDim2.new(1, -24, 1, -24), Position = UDim2.new(0, 12, 0, 12), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 4, ScrollBarImageColor3 = Theme.Accent, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y}, ConsoleFrame) make("UIListLayout", {Padding = UDim.new(0, 4), SortOrder = Enum.SortOrder.LayoutOrder}, ConsoleScroll) local function log(text, isError) local color = isError and Theme.Red or Theme.Green make("TextLabel", {Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundTransparency = 1, Text = "> " .. tostring(text), TextColor3 = color, Font = Enum.Font.Code, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left, TextWrapped = true, LayoutOrder = nextOrder(ConsoleScroll)}, ConsoleScroll) task.defer(function() ConsoleScroll.CanvasPosition = Vector2.new(0, ConsoleScroll.AbsoluteCanvasSize.Y) end) end local SearchPanel = NewPanel("SEARCH") Section(SearchPanel, "SEARCH") local SearchBar = make("Frame", {Size = UDim2.new(1, 0, 0, 40), BackgroundColor3 = Theme.Card, BorderSizePixel = 0, LayoutOrder = nextOrder(SearchPanel)}, SearchPanel) addNeonBorder(SearchBar, 8, Theme.Line, Theme.Accent) local SearchBox = make("TextBox", {Size = UDim2.new(1, -90, 1, 0), Position = UDim2.new(0, 14, 0, 0), BackgroundTransparency = 1, Text = "", PlaceholderText = "Search script...", PlaceholderColor3 = Theme.Dim, TextColor3 = Theme.Text, Font = FONT, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left, ClearTextOnFocus = false}, SearchBar) local SearchBtn = make("TextButton", {Size = UDim2.new(0, 70, 0, 28), Position = UDim2.new(1, -80, 0.5, -14), BackgroundColor3 = Theme.Accent, Text = "SEARCH", Font = FONT_BOLD, TextSize = 12, TextColor3 = Theme.Bg, AutoButtonColor = false}, SearchBar) corner(SearchBtn, 6) local ResultsContainer = make("Frame", {Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundTransparency = 1, LayoutOrder = nextOrder(SearchPanel)}, SearchPanel) make("UIListLayout", {Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder}, ResultsContainer) local SavedPanel = NewPanel("SAVED") Section(SavedPanel, "SAVED SCRIPTS") local SavedContainer = make("Frame", {Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundTransparency = 1, LayoutOrder = nextOrder(SavedPanel)}, SavedPanel) make("UIListLayout", {Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder}, SavedContainer) local function LoadSavedScripts() for _, child in ipairs(SavedContainer:GetChildren()) do if child:IsA("TextButton") then child:Destroy() end end if isfile and readfile then pcall(function() if isfile("XenoSaved.txt") then local content = readfile("XenoSaved.txt") if content and content ~= "" then local data = HttpService:JSONDecode(content) for i, item in ipairs(data) do local scriptName = "Saved Script #"..i local scriptCode = "" if type(item) == "string" then scriptCode = item elseif type(item) == "table" then scriptName = item.name or ("Saved Script #"..i) scriptCode = item.code or "" end local btn = make("TextButton", {Size = UDim2.new(1, 0, 0, 56), BackgroundColor3 = Theme.Card, BackgroundTransparency = 0.2, Text = "", AutoButtonColor = false, LayoutOrder = nextOrder(SavedContainer)}, SavedContainer) addNeonBorder(btn, 8, Theme.Line, Theme.AccentDim) make("TextLabel", {Size = UDim2.new(1, -80, 0, 22), Position = UDim2.new(0, 12, 0, 8), BackgroundTransparency = 1, Text = scriptName, Font = FONT_BOLD, TextSize = 13, TextColor3 = Theme.Text, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd}, btn) make("TextLabel", {Size = UDim2.new(1, -80, 0, 16), Position = UDim2.new(0, 12, 0, 30), BackgroundTransparency = 1, Text = string.sub(scriptCode, 1, 30).."...", Font = Enum.Font.Code, TextSize = 11, TextColor3 = Theme.Dim, TextXAlignment = Enum.TextXAlignment.Left}, btn) local loadBtn = make("TextButton", {Size = UDim2.new(0, 60, 0, 30), Position = UDim2.new(1, -70, 0.5, -15), BackgroundColor3 = Theme.Accent, Text = "LOAD", Font = FONT_BOLD, TextSize = 12, TextColor3 = Theme.Bg, AutoButtonColor = false}, btn) corner(loadBtn, 4) loadBtn.MouseButton1Click:Connect(function() CodeBox.Text = scriptCode for n, p in pairs(panels) do p.Visible = (n == "EDITOR") end log("Script loaded from save.", false) end) end end end end) end end LoadSavedScripts() local function ShowSavePopup(scriptCode) local overlay = make("Frame", {Size = UDim2.new(1, 0, 1, 0), BackgroundColor3 = Color3.fromRGB(0,0,0), BackgroundTransparency = 0.4, ZIndex = 200, Parent = MainFrame}) local popup = make("Frame", {Size = UDim2.new(0, 300, 0, 160), Position = UDim2.new(0.5, 0, 0.5, 0), AnchorPoint = Vector2.new(0.5, 0.5), BackgroundColor3 = Color3.fromRGB(24, 26, 32), BorderSizePixel = 0, ZIndex = 201, Parent = overlay}) corner(popup, 12); stroke(popup, Theme.Line, 1.5, 0) make("TextLabel", {Size = UDim2.new(1, -40, 0, 30), Position = UDim2.new(0, 20, 0, 15), BackgroundTransparency = 1, Text = "Save Script", Font = FONT_TITLE, TextSize = 20, TextColor3 = Theme.Text, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 202}, popup) local inputFrame = make("Frame", {Size = UDim2.new(1, -40, 0, 36), Position = UDim2.new(0, 20, 0, 50), BackgroundColor3 = Theme.Card, BorderSizePixel = 0, ZIndex = 202}, popup) corner(inputFrame, 6); stroke(inputFrame, Theme.Line, 1, 0) local nameInput = make("TextBox", {Size = UDim2.new(1, -20, 1, 0), Position = UDim2.new(0, 10, 0, 0), BackgroundTransparency = 1, Text = "", PlaceholderText = "Enter script name...", PlaceholderColor3 = Theme.Dim, TextColor3 = Theme.Text, Font = FONT, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 203}, inputFrame) local cancel = make("TextButton", {Size = UDim2.new(0.5, -25, 0, 35), Position = UDim2.new(0, 20, 1, -50), BackgroundColor3 = Theme.Card, Text = "CANCEL", Font = FONT_BOLD, TextSize = 13, TextColor3 = Theme.Dim, AutoButtonColor = false, ZIndex = 202}, popup) corner(cancel, 6) cancel.MouseButton1Click:Connect(function() overlay:Destroy() end) local save = make("TextButton", {Size = UDim2.new(0.5, -25, 0, 35), Position = UDim2.new(0.5, 5, 1, -50), BackgroundColor3 = Theme.Green, Text = "SAVE", Font = FONT_BOLD, TextSize = 13, TextColor3 = Theme.Bg, AutoButtonColor = false, ZIndex = 202}, popup) corner(save, 6) save.MouseButton1Click:Connect(function() local name = nameInput.Text if name == "" then name = "Unnamed Script" end overlay:Destroy() if writefile and isfile then pcall(function() local saved = {} if isfile("XenoSaved.txt") then local content = readfile("XenoSaved.txt") if content and content ~= "" then local data = HttpService:JSONDecode(content) for _, v in ipairs(data) do if type(v) == "string" then table.insert(saved, {name = "Saved Script (Old)", code = v}) else table.insert(saved, v) end end end end table.insert(saved, {name = name, code = scriptCode}) writefile("XenoSaved.txt", HttpService:JSONEncode(saved)) log("Script saved as: " .. name, false) LoadSavedScripts() for n, p in pairs(panels) do p.Visible = (n == "SAVED") end end) else log("Your executor doesn't support file saving.", true) end end) end SaveBtn.MouseButton1Click:Connect(function() ShowSavePopup(CodeBox.Text) end) local function ShowOptionPopup(scriptCode) local overlay = make("Frame", {Size = UDim2.new(1, 0, 1, 0), BackgroundColor3 = Color3.fromRGB(0,0,0), BackgroundTransparency = 0.4, ZIndex = 200, Parent = MainFrame}) local popup = make("Frame", {Size = UDim2.new(0, 350, 0, 280), Position = UDim2.new(0.5, 0, 0.5, 0), AnchorPoint = Vector2.new(0.5, 0.5), BackgroundColor3 = Color3.fromRGB(24, 26, 32), BorderSizePixel = 0, ZIndex = 201, Parent = overlay}) corner(popup, 12); stroke(popup, Color3.fromRGB(50, 55, 65), 1, 0) popup.Size = UDim2.new(0, 300, 0, 230) TweenService:Create(popup, TweenInfo.new(0.2, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Size = UDim2.new(0, 350, 0, 280)}):Play() make("TextLabel", {Size = UDim2.new(1, -40, 0, 30), Position = UDim2.new(0, 20, 0, 20), BackgroundTransparency = 1, Text = "Select Your Option", Font = FONT_TITLE, TextSize = 22, TextColor3 = Theme.Text, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 202}, popup) make("TextLabel", {Size = UDim2.new(1, -40, 0, 40), Position = UDim2.new(0, 20, 0, 50), BackgroundTransparency = 1, Text = "Choose whether to execute, save, or edit the script.", Font = FONT, TextSize = 12, TextColor3 = Theme.Dim, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 202}, popup) local closeX = make("TextButton", {Size = UDim2.new(0, 30, 0, 30), Position = UDim2.new(1, -40, 0, 15), BackgroundTransparency = 1, Text = "✕", Font = FONT_BOLD, TextSize = 18, TextColor3 = Theme.Dim, ZIndex = 203}, popup) closeX.MouseButton1Click:Connect(function() overlay:Destroy() end) local execBtnPopup = make("TextButton", {Size = UDim2.new(1, -40, 0, 40), Position = UDim2.new(0, 20, 0, 95), BackgroundColor3 = Color3.fromRGB(20, 30, 40), Text = "EXECUTE SELECTED SCRIPT", Font = FONT_BOLD, TextSize = 13, TextColor3 = Theme.Accent, AutoButtonColor = false, ZIndex = 202}, popup) corner(execBtnPopup, 8); stroke(execBtnPopup, Theme.Accent, 1.5, 0) execBtnPopup.MouseButton1Click:Connect(function() overlay:Destroy() CodeBox.Text = scriptCode for n, p in pairs(panels) do p.Visible = (n == "CONSOLE") end log("Executing script...", false) local success, err = pcall(function() local fn, compileErr = loadstring(scriptCode); if not fn then error("Syntax Error: " .. tostring(compileErr)) end; fn() end) if success then log("Executed successfully!", false) else log(tostring(err), true) end end) local editBtn = make("TextButton", {Size = UDim2.new(1, -40, 0, 40), Position = UDim2.new(0, 20, 0, 145), BackgroundColor3 = Theme.Card, Text = "OPEN SCRIPT IN EDITOR", Font = FONT_BOLD, TextSize = 13, TextColor3 = Theme.Dim, AutoButtonColor = false, ZIndex = 202}, popup) corner(editBtn, 8); stroke(editBtn, Theme.Line, 1.5, 0) editBtn.MouseButton1Click:Connect(function() overlay:Destroy() CodeBox.Text = scriptCode for n, p in pairs(panels) do p.Visible = (n == "EDITOR") end end) local saveBtnPopup = make("TextButton", {Size = UDim2.new(1, -40, 0, 40), Position = UDim2.new(0, 20, 0, 195), BackgroundColor3 = Theme.Card, Text = "SAVE SCRIPT", Font = FONT_BOLD, TextSize = 13, TextColor3 = Theme.Green, AutoButtonColor = false, ZIndex = 202}, popup) corner(saveBtnPopup, 8); stroke(saveBtnPopup, Theme.Green, 1.5, 0) saveBtnPopup.MouseButton1Click:Connect(function() overlay:Destroy() ShowSavePopup(scriptCode) end) end local searchConnection local function searchScriptBlox(query) if searchConnection then searchConnection:Disconnect() end for _, child in ipairs(ResultsContainer:GetChildren()) do if child:IsA("Frame") or child:IsA("TextLabel") then child:Destroy() end end if query == "" then return end local statusLbl = make("TextLabel", {Size = UDim2.new(1, 0, 0, 30), BackgroundTransparency = 1, Text = "Searching...", TextColor3 = Theme.Dim, Font = FONT, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left, LayoutOrder = nextOrder(ResultsContainer)}, ResultsContainer) task.spawn(function() local success, response = pcall(function() return game:HttpGet("https://scriptblox.com/api/script/search?q=" .. HttpService:UrlEncode(query) .. "&max=10&mode=free") end) if not statusLbl or not statusLbl.Parent then return end statusLbl:Destroy() if not success or not response or response == "" then return end local decodeSuccess, data = pcall(function() return HttpService:JSONDecode(response) end) if not decodeSuccess or not data.result or #data.result.scripts == 0 then return end for _, child in ipairs(ResultsContainer:GetChildren()) do if child:IsA("TextButton") then child:Destroy() end end for _, script in ipairs(data.result.scripts) do local btn = make("TextButton", {Size = UDim2.new(1, 0, 0, 56), BackgroundColor3 = Theme.Card, BackgroundTransparency = 0.2, Text = "", AutoButtonColor = false, LayoutOrder = nextOrder(ResultsContainer)}, ResultsContainer) addNeonBorder(btn, 8, Theme.Line, Theme.AccentDim) make("TextLabel", {Size = UDim2.new(1, -30, 0, 22), Position = UDim2.new(0, 12, 0, 8), BackgroundTransparency = 1, Text = script.title or "No Title", Font = FONT_BOLD, TextSize = 13, TextColor3 = Theme.Text, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd}, btn) make("TextLabel", {Size = UDim2.new(1, -30, 0, 16), Position = UDim2.new(0, 12, 0, 30), BackgroundTransparency = 1, Text = (script.game and script.game.name or "Universal"), Font = FONT, TextSize = 11, TextColor3 = Theme.Dim, TextXAlignment = Enum.TextXAlignment.Left}, btn) btn.MouseButton1Click:Connect(function() ShowOptionPopup(script.script or "-- Empty Script") end) end end) end SearchBtn.MouseButton1Click:Connect(function() searchScriptBlox(SearchBox.Text) end) SearchBox.FocusLost:Connect(function(enterPressed) if enterPressed then searchScriptBlox(SearchBox.Text) end end) local ScriptsPanel = NewPanel("SCRIPTS") Section(ScriptsPanel, "QUICK SCRIPTS") local function AddScriptBtn(title, code) local b = make("TextButton", {Size = UDim2.new(1, 0, 0, 42), BackgroundColor3 = Theme.Card, BackgroundTransparency = 0.3, Text = title, Font = FONT, TextSize = 13, TextColor3 = Theme.Text, AutoButtonColor = false, LayoutOrder = nextOrder(ScriptsPanel)}, ScriptsPanel) addNeonBorder(b, 6, Theme.Line, Theme.AccentDim) b.MouseButton1Click:Connect(function() ShowOptionPopup(code) end) end AddScriptBtn("Infinite Yield (Admin)", 'loadstring(game:HttpGet("https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"))()') local CreditsPanel = NewPanel("CREDITS") local navs = {} local current local function Select(name) current = name for n, d in pairs(navs) do local on = (n == name) d.deco.Visible = on TweenService:Create(d.btn, TweenInfo.new(0.15), {TextColor3 = on and Theme.Text or Theme.Dim}):Play() end for n, p in pairs(panels) do p.Visible = (n == name) end end local function NavItem(text, order) local item = make("Frame", {Size = UDim2.new(1, -20, 0, 30), BackgroundTransparency = 1, LayoutOrder = order}, Side) local deco = make("Frame", {Size = UDim2.new(1, 0, 1, 0), BackgroundTransparency = 1, Visible = false, ZIndex = 1}, item) local glow = make("Frame", {Size = UDim2.new(1, 0, 1, 0), BackgroundColor3 = Theme.Accent, BorderSizePixel = 0, ZIndex = 1}, deco) make("UIGradient", {Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.5, 0.86), NumberSequenceKeypoint.new(1, 1)})}, glow) local l1 = make("Frame", {Size = UDim2.new(1, 0, 0, 1), BackgroundColor3 = Theme.Accent, ZIndex = 1, BorderSizePixel=0}, deco) local l2 = make("Frame", {Size = UDim2.new(1, 0, 0, 1), Position = UDim2.new(0, 0, 1, -1), BackgroundColor3 = Theme.Accent, ZIndex = 1, BorderSizePixel=0}, deco) make("UIGradient", {Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.5, 0), NumberSequenceKeypoint.new(1, 1)})}, l1) make("UIGradient", {Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.5, 0), NumberSequenceKeypoint.new(1, 1)})}, l2) make("Frame", {Size = UDim2.new(0, 6, 0, 6), Position = UDim2.new(1, -20, 0.5, -3), BackgroundColor3 = Theme.Accent, BorderSizePixel = 0, Rotation = 45, ZIndex = 4}, deco) local btn = make("TextButton", {Size = UDim2.new(1, 0, 1, 0), BackgroundTransparency = 1, Text = text, Font = FONT_TITLE, TextSize = 16, TextColor3 = Theme.Dim, AutoButtonColor = false, ZIndex = 3, TextXAlignment = Enum.TextXAlignment.Left}, item) make("UIPadding", {PaddingLeft = UDim.new(0, 22)}, btn) navs[text] = {btn = btn, deco = deco, item = item} btn.MouseButton1Click:Connect(function() Select(text) end) end NavItem("EDITOR", 1) NavItem("SEARCH", 2) NavItem("CONSOLE", 3) NavItem("SAVED", 4) NavItem("SCRIPTS", 5) NavItem("CREDITS", 6) Select("EDITOR") ExecBtn.MouseButton1Click:Connect(function() local code = CodeBox.Text if code:match("^%s*$") then return end Select("CONSOLE") log("Executing script...", false) local success, err = pcall(function() local fn, compileErr = loadstring(code); if not fn then error("Syntax Error: " .. tostring(compileErr)) end; fn() end) if success then log("Executed successfully!", false) else log(tostring(err), true) end end) local fbState = { dragging = false, moved = false, startTouch = nil, startPos = nil, lastTap = 0 } MainButton.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then fbState.dragging = true; fbState.moved = false; fbState.startTouch = input.Position fbState.startPos = Vector2.new(MainButton.AbsolutePosition.X, MainButton.AbsolutePosition.Y) end end) UserInputService.InputChanged:Connect(function(input) if not fbState.dragging then return end if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement then local delta = input.Position - fbState.startTouch if delta.Magnitude > 10 then fbState.moved = true end if fbState.moved then MainButton.Position = UDim2.fromOffset(fbState.startPos.X + delta.X, fbState.startPos.Y + delta.Y) end end end) UserInputService.InputEnded:Connect(function(input) if not fbState.dragging then return end if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then fbState.dragging = false if not fbState.moved then local now = os.clock() if now - fbState.lastTap < 0.4 then ScreenGui:Destroy(); return end fbState.lastTap = now MainButton.Visible = false; MainFrame.Visible = true end fbState.moved = false end end) local VirtualCursor = Instance.new("ImageLabel") VirtualCursor.Size = UDim2.fromOffset(36, 36); VirtualCursor.BackgroundTransparency = 1; VirtualCursor.Image = "rbxassetid://11859619231"; VirtualCursor.ImageColor3 = Theme.Accent; VirtualCursor.ZIndex = 9999; VirtualCursor.Parent = ScreenGui; VirtualCursor.Visible = false local isCursorDragging, cursorTouchId = false, nil local function isSafeZone(pos) local v = workspace.CurrentCamera.ViewportSize; if pos.X < v.X * 0.4 and pos.Y > v.Y * 0.5 then return false end; if pos.X > v.X * 0.6 and pos.Y > v.Y * 0.5 then return false end; return true end UserInputService.InputBegan:Connect(function(input, gp) if gp then return end; if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then if isSafeZone(input.Position) then isCursorDragging = true; cursorTouchId = input; VirtualCursor.Visible = true; VirtualCursor.Position = UDim2.fromOffset(input.Position.X - 18, input.Position.Y - 18) end end end) UserInputService.InputChanged:Connect(function(input, gp) if isCursorDragging and input == cursorTouchId then VirtualCursor.Position = UDim2.fromOffset(input.Position.X - 18, input.Position.Y - 18) end end) UserInputService.InputEnded:Connect(function(input, gp) if input == cursorTouchId then isCursorDragging = false; cursorTouchId = nil; VirtualCursor.Visible = false end end) log("Xeno loaded.", false) end -- Start immediately LoadExecutor()