--[[ Dino Executor V2 - Enhanced Educational Example Creator: AI Model Description: A feature-rich, self-contained executor UI with real search and stats. WARNING: This is for educational purposes. Using executors can violate Roblox's ToS. ]] -- Main wrapper to prevent the entire script from crashing if one part fails local success, errorMessage = pcall(function() -- Services local players = game:GetService("Players") local runService = game:GetService("RunService") local userInputService = game:GetService("UserInputService") local httpService = game:GetService("HttpService") local statsService = game:GetService("Stats") -- Player local player = players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") -- === UI CREATION === local mainGui = Instance.new("ScreenGui") mainGui.Name = "qwertyuiop_12345_v2" mainGui.Parent = playerGui mainGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling mainGui.ResetOnSpawn = false -- Draggable Top Bar Functionality local function makeDraggable(frame) local dragging = false local dragStart, startPos frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) userInputService.InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then local delta = input.Position - dragStart frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) end -- === DINOSAUR BUTTON (UI TOGGLER) === local dinoButton = Instance.new("TextButton") dinoButton.Name = "dino_toggler" dinoButton.Parent = mainGui dinoButton.BackgroundColor3 = Color3.fromRGB(35, 35, 35) dinoButton.BorderSizePixel = 0 dinoButton.Position = UDim2.new(0, 10, 0, 10) dinoButton.Size = UDim2.new(0, 50, 0, 50) dinoButton.Font = Enum.Font.GothamBold dinoButton.Text = "🦖" dinoButton.TextColor3 = Color3.fromRGB(255, 255, 255) dinoButton.TextSize = 28.000 Instance.new("UICorner", dinoButton).CornerRadius = UDim.new(0, 10) -- === MAIN EXECUTOR UI FRAME === local mainFrame = Instance.new("Frame") mainFrame.Name = "main_frame_asdfghjkl" mainFrame.Parent = mainGui mainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) mainFrame.BorderSizePixel = 0 mainFrame.Position = UDim2.new(0.5, -300, 0.5, -200) mainFrame.Size = UDim2.new(0, 600, 0, 400) mainFrame.Visible = false mainFrame.Active = true Instance.new("UICorner", mainFrame).CornerRadius = UDim.new(0, 8) -- Title Bar local titleBar = Instance.new("Frame") titleBar.Name = "TitleBar" titleBar.Parent = mainFrame titleBar.BackgroundColor3 = Color3.fromRGB(35, 35, 35) titleBar.BorderSizePixel = 0 titleBar.Size = UDim2.new(1, 0, 0, 30) titleBar.Position = UDim2.new(0, 0, 0, 0) Instance.new("UICorner", titleBar).CornerRadius = UDim.new(0, 8) local titleLabel = Instance.new("TextLabel") titleLabel.Parent = titleBar titleLabel.BackgroundTransparency = 1 titleLabel.Position = UDim2.new(0, 10, 0, 0) titleLabel.Size = UDim2.new(1, -10, 1, 0) titleLabel.Font = Enum.Font.GothamSemibold titleLabel.Text = "Dino Executor V2" titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) titleLabel.TextXAlignment = Enum.TextXAlignment.Left makeDraggable(titleBar) -- Script Input Box local scriptBox = Instance.new("TextBox") scriptBox.Name = "ScriptBox" scriptBox.Parent = mainFrame scriptBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40) scriptBox.BorderSizePixel = 0 scriptBox.Position = UDim2.new(0, 10, 0, 40) scriptBox.Size = UDim2.new(1, -20, 1, -90) scriptBox.Font = Enum.Font.Code scriptBox.MultiLine = true scriptBox.PlaceholderText = "-- Paste your script here..." scriptBox.Text = "" scriptBox.TextColor3 = Color3.fromRGB(200, 200, 200) scriptBox.TextSize = 14.000 scriptBox.TextXAlignment = Enum.TextXAlignment.Left scriptBox.TextYAlignment = Enum.TextYAlignment.Top Instance.new("UICorner", scriptBox).CornerRadius = UDim.new(0, 5) Instance.new("UIPadding", scriptBox).PaddingTop = UDim.new(0, 5) Instance.new("UIPadding", scriptBox).PaddingLeft = UDim.new(0, 5) -- === BUTTONS === local buttonFrame = Instance.new("Frame") buttonFrame.Name = "ButtonFrame" buttonFrame.Parent = mainFrame buttonFrame.BackgroundTransparency = 1 buttonFrame.Position = UDim2.new(0, 10, 1, -40) buttonFrame.Size = UDim2.new(1, -20, 0, 30) local function createButton(name, text, position) local btn = Instance.new("TextButton") btn.Name = name btn.Parent = buttonFrame btn.BackgroundColor3 = Color3.fromRGB(55, 55, 55) btn.BorderSizePixel = 0 btn.Position = position btn.Size = UDim2.new(0, 95, 1, 0) btn.Font = Enum.Font.GothamBold btn.Text = text btn.TextColor3 = Color3.fromRGB(255, 255, 255) btn.TextSize = 14.000 Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 5) return btn end local searchButton = createButton("SearchBtn", "🔍 Search", UDim2.new(0, 0, 0, 0)) local settingsButton = createButton("SettingsBtn", "⚙️ Settings", UDim2.new(0, 105, 0, 0)) local consoleButton = createButton("ConsoleBtn", "🖥️ Console", UDim2.new(0, 210, 0, 0)) local scriptsButton = createButton("ScriptsBtn", "📂 Scripts", UDim2.new(0, 315, 0, 0)) local executeButton = createButton("ExecuteBtn", "▶️ Execute", UDim2.new(0, 420, 0, 0)) local closeButton = createButton("CloseBtn", "❌ Close", UDim2.new(0, 525, 0, 0)) -- === CONSOLE UI === local consoleFrame = Instance.new("Frame") consoleFrame.Name = "ConsoleFrame" consoleFrame.Parent = mainFrame consoleFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20) consoleFrame.BorderSizePixel = 0 consoleFrame.Position = UDim2.new(0, 10, 0, 40) consoleFrame.Size = UDim2.new(1, -20, 1, -90) consoleFrame.Visible = false Instance.new("UICorner", consoleFrame).CornerRadius = UDim.new(0, 5) local consoleScrolling = Instance.new("ScrollingFrame") consoleScrolling.Parent = consoleFrame consoleScrolling.BackgroundTransparency = 1 consoleScrolling.BorderSizePixel = 0 consoleScrolling.Size = UDim2.new(1, 0, 1, 0) consoleScrolling.CanvasSize = UDim2.new(0, 0, 0, 0) consoleScrolling.ScrollBarThickness = 8 local consoleLayout = Instance.new("UIListLayout", consoleScrolling) consoleLayout.SortOrder = Enum.SortOrder.LayoutOrder consoleLayout.Padding = UDim.new(0, 2) local function logToConsole(message, msgType) msgType = msgType or "INFO" local label = Instance.new("TextLabel") label.Parent = consoleScrolling label.BackgroundTransparency = 1 label.Font = Enum.Font.Code label.Text = "[" .. os.date("%H:%M:%S") .. "] [" .. msgType .. "] " .. message label.TextColor3 = msgType == "ERROR" and Color3.fromRGB(255, 100, 100) or (msgType == "SUCCESS" and Color3.fromRGB(100, 255, 100) or Color3.fromRGB(255, 255, 255)) label.TextSize = 14.000 label.TextXAlignment = Enum.TextXAlignment.Left label.TextWrapped = true label.TextYAlignment = Enum.TextYAlignment.Top -- Dynamically size the label based on text content label.Size = UDim2.new(1, -10, 0, label.TextBounds.Y + 2) label.LayoutOrder = tick() * 1000000 runService.Heartbeat:Wait() consoleScrolling.CanvasSize = UDim2.new(0, 0, 0, consoleLayout.AbsoluteContentSize.Y) consoleScrolling.CanvasPosition = Vector2.new(0, consoleScrolling.CanvasSize.Y) end -- === SEARCH UI (REAL ScriptBlox) === local searchFrame = Instance.new("Frame") searchFrame.Name = "SearchFrame" searchFrame.Parent = mainFrame searchFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20) searchFrame.BorderSizePixel = 0 searchFrame.Position = UDim2.new(0, 10, 0, 40) searchFrame.Size = UDim2.new(1, -20, 1, -90) searchFrame.Visible = false Instance.new("UICorner", searchFrame).CornerRadius = UDim.new(0, 5) local searchInput = Instance.new("TextBox") searchInput.Name = "SearchInput" searchInput.Parent = searchFrame searchInput.BackgroundColor3 = Color3.fromRGB(40, 40, 40) searchInput.BorderSizePixel = 0 searchInput.Size = UDim2.new(1, 0, 0, 30) searchInput.Font = Enum.Font.Gotham searchInput.PlaceholderText = "Search for scripts..." searchInput.Text = "" searchInput.TextColor3 = Color3.fromRGB(255, 255, 255) searchInput.TextSize = 16.000 Instance.new("UICorner", searchInput).CornerRadius = UDim.new(0, 5) local searchResults = Instance.new("ScrollingFrame") searchResults.Parent = searchFrame searchResults.BackgroundTransparency = 1 searchResults.BorderSizePixel = 0 searchResults.Position = UDim2.new(0, 0, 0, 35) searchResults.Size = UDim2.new(1, 0, 1, -35) searchResults.CanvasSize = UDim2.new(0, 0, 0, 0) searchResults.ScrollBarThickness = 8 local searchLayout = Instance.new("UIListLayout", searchResults) searchLayout.SortOrder = Enum.SortOrder.LayoutOrder searchLayout.Padding = UDim.new(0, 5) local function scriptbloxSearch(query) if #query:gsub(" ", "") < 2 then logToConsole("Query too short.", "ERROR") return end logToConsole("Searching ScriptBlox for: " .. query, "INFO") -- Clear previous results for _, child in ipairs(searchResults:GetChildren()) do if child:IsA("Frame") then child:Destroy() end end local url = "https://scriptblox.com/api/script/search?q=" .. httpService:UrlEncode(query) local success, result = pcall(function() return httpService:JSONDecode(httpService:GetAsync(url)) end) if not success then logToConsole("HTTP Request Failed: Is HttpService enabled? " .. tostring(result), "ERROR") return end if result and result.result and #result.result.scripts > 0 then for i, scriptData in ipairs(result.result.scripts) do local resultFrame = Instance.new("Frame") resultFrame.Parent = searchResults resultFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) resultFrame.BorderSizePixel = 0 resultFrame.Size = UDim2.new(1, -5, 0, 60) Instance.new("UICorner", resultFrame).CornerRadius = UDim.new(0, 5) local titleLabel = Instance.new("TextLabel") titleLabel.Parent = resultFrame titleLabel.BackgroundTransparency = 1 titleLabel.Position = UDim2.new(0, 10, 0, 5) titleLabel.Size = UDim2.new(1, -20, 0, 25) titleLabel.Font = Enum.Font.GothamBold titleLabel.Text = scriptData.title .. (scriptData.verified and " ✅" or "") titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) titleLabel.TextSize = 16 titleLabel.TextXAlignment = Enum.TextXAlignment.Left titleLabel.TextTruncate = Enum.TextTruncate.SplitWord local infoLabel = Instance.new("TextLabel") infoLabel.Parent = resultFrame infoLabel.BackgroundTransparency = 1 infoLabel.Position = UDim2.new(0, 10, 0, 30) infoLabel.Size = UDim2.new(1, -20, 0, 25) infoLabel.Font = Enum.Font.Gotham infoLabel.Text = (scriptData.game and scriptData.game.name or "Universal") .. " | Views: " .. scriptData.views infoLabel.TextColor3 = Color3.fromRGB(200, 200, 200) infoLabel.TextSize = 14 infoLabel.TextXAlignment = Enum.TextXAlignment.Left infoLabel.TextTruncate = Enum.TextTruncate.SplitWord resultFrame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then scriptBox.Text = scriptData.script searchFrame.Visible = false scriptBox.Visible = true logToConsole("Loaded script: " .. scriptData.title, "SUCCESS") end end) end else logToConsole("No scripts found for that query.", "INFO") end runService.Heartbeat:Wait() searchResults.CanvasSize = UDim2.new(0, 0, 0, searchLayout.AbsoluteContentSize.Y) end searchInput.FocusLost:Connect(function(enterPressed) if enterPressed then scriptbloxSearch(searchInput.Text) end end) -- === SCRIPTS UI (BUILT-IN LIBRARY) === local scriptsFrame = Instance.new("Frame") scriptsFrame.Name = "ScriptsFrame" scriptsFrame.Parent = mainFrame scriptsFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20) scriptsFrame.BorderSizePixel = 0 scriptsFrame.Position = UDim2.new(0, 10, 0, 40) scriptsFrame.Size = UDim2.new(1, -20, 1, -90) scriptsFrame.Visible = false Instance.new("UICorner", scriptsFrame).CornerRadius = UDim.new(0, 5) local scriptsScrolling = Instance.new("ScrollingFrame") scriptsScrolling.Parent = scriptsFrame scriptsScrolling.BackgroundTransparency = 1 scriptsScrolling.BorderSizePixel = 0 scriptsScrolling.Size = UDim2.new(1, 0, 1, 0) scriptsScrolling.CanvasSize = UDim2.new(0, 0, 0, 0) scriptsScrolling.ScrollBarThickness = 8 local scriptsLayout = Instance.new("UIListLayout", scriptsScrolling) scriptsLayout.SortOrder = Enum.SortOrder.LayoutOrder scriptsLayout.Padding = UDim.new(0, 5) local builtInScripts = { { title = "Infinite Yield", script = 'loadstring(game:HttpGet("https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"))()' }, { title = "Simple ESP", script = '-- Simple ESP\nfor _, p in pairs(game.Players:GetPlayers()) do\n if p ~= player then\n local highlight = Instance.new("Highlight")\n highlight.Parent = p.Character\n highlight.FillColor = Color3.fromRGB(255, 0, 0)\n end\nend' }, { title = "Chat Spammer", script = '-- Chat Spammer\nlocal message = "I love Dino Executor!"\nlocal delay = 0.5\nwhile true do\n game:GetService("ReplicatedStorage"):FindFirstChildOfClass("RemoteEvent"):FireServer(message, "All") -- Adjust for game\n wait(delay)\nend' } } for i, data in ipairs(builtInScripts) do local scriptBtn = Instance.new("TextButton") scriptBtn.Parent = scriptsScrolling scriptBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50) scriptBtn.BorderSizePixel = 0 scriptBtn.Size = UDim2.new(1, -5, 0, 40) scriptBtn.Font = Enum.Font.Gotham scriptBtn.Text = " " .. data.title scriptBtn.TextColor3 = Color3.fromRGB(255, 255, 255) scriptBtn.TextSize = 16.000 scriptBtn.TextXAlignment = Enum.TextXAlignment.Left Instance.new("UICorner", scriptBtn).CornerRadius = UDim.new(0, 5) scriptBtn.MouseButton1Click:Connect(function() scriptBox.Text = data.script scriptsFrame.Visible = false scriptBox.Visible = true logToConsole("Loaded built-in script: " .. data.title, "SUCCESS") end) end runService.Heartbeat:Wait() scriptsScrolling.CanvasSize = UDim2.new(0, 0, 0, scriptsLayout.AbsoluteContentSize.Y) -- === SETTINGS UI === local settingsFrame = Instance.new("Frame") settingsFrame.Name = "SettingsFrame" settingsFrame.Parent = mainFrame settingsFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20) settingsFrame.BorderSizePixel = 0 settingsFrame.Position = UDim2.new(0, 10, 0, 40) settingsFrame.Size = UDim2.new(1, -20, 1, -90) settingsFrame.Visible = false Instance.new("UICorner", settingsFrame).CornerRadius = UDim.new(0, 5) local settingsTitle = Instance.new("TextLabel") settingsTitle.Parent = settingsFrame settingsTitle.BackgroundTransparency = 1 settingsTitle.Position = UDim2.new(0, 10, 0, 10) settingsTitle.Size = UDim2.new(1, -20, 0, 30) settingsTitle.Font = Enum.Font.GothamBold settingsTitle.Text = "Executor Settings & Stats" settingsTitle.TextColor3 = Color3.fromRGB(255, 255, 255) settingsTitle.TextSize = 20.000 settingsTitle.TextXAlignment = Enum.TextXAlignment.Left -- State Management local settings = { clearOnExecute = true, autoCloseUI = false, } local function createToggle(name, text, yPos, settingKey) local frame = Instance.new("Frame") frame.Parent = settingsFrame frame.BackgroundTransparency = 1 frame.Position = UDim2.new(0, 10, 0, yPos) frame.Size = UDim2.new(1, -20, 0, 30) local label = Instance.new("TextLabel") label.Parent = frame label.BackgroundTransparency = 1 label.Size = UDim2.new(1, -50, 1, 0) label.Font = Enum.Font.Gotham label.Text = text label.TextColor3 = Color3.fromRGB(200, 200, 200) label.TextSize = 16.000 label.TextXAlignment = Enum.TextXAlignment.Left local toggle = Instance.new("TextButton") toggle.Parent = frame toggle.BackgroundColor3 = settings[settingKey] and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 0, 0) toggle.BorderSizePixel = 0 toggle.Position = UDim2.new(1, -40, 0.5, -10) toggle.Size = UDim2.new(0, 40, 0, 20) toggle.Font = Enum.Font.GothamBold toggle.Text = settings[settingKey] and "ON" or "OFF" toggle.TextColor3 = Color3.fromRGB(255, 255, 255) toggle.TextSize = 12.000 Instance.new("UICorner", toggle).CornerRadius = UDim.new(0, 10) toggle.MouseButton1Click:Connect(function() settings[settingKey] = not settings[settingKey] toggle.BackgroundColor3 = settings[settingKey] and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 0, 0) toggle.Text = settings[settingKey] and "ON" or "OFF" end) end createToggle("ClearOnExecuteToggle", "Clear Console on Execute", 50, "clearOnExecute") createToggle("AutoCloseToggle", "Auto-Close UI on Execute", 90, "autoCloseUI") -- Stats Display local fpsLabel = Instance.new("TextLabel") fpsLabel.Parent = settingsFrame fpsLabel.BackgroundTransparency = 1 fpsLabel.Position = UDim2.new(0, 10, 0, 140) fpsLabel.Size = UDim2.new(1, -20, 0, 20) fpsLabel.Font = Enum.Font.Gotham fpsLabel.Text = "FPS: Calculating..." fpsLabel.TextColor3 = Color3.fromRGB(255, 255, 100) fpsLabel.TextSize = 16.000 fpsLabel.TextXAlignment = Enum.TextXAlignment.Left local pingLabel = Instance.new("TextLabel") pingLabel.Parent = settingsFrame pingLabel.BackgroundTransparency = 1 pingLabel.Position = UDim2.new(0, 10, 0, 170) pingLabel.Size = UDim2.new(1, -20, 0, 20) pingLabel.Font = Enum.Font.Gotham pingLabel.Text = "Ping: Calculating..." pingLabel.TextColor3 = Color3.fromRGB(255, 255, 100) pingLabel.TextSize = 16.000 pingLabel.TextXAlignment = Enum.TextXAlignment.Left -- Update stats every second spawn(function() while true do local delta = runService.Heartbeat:Wait() fpsLabel.Text = "FPS: " .. math.floor(1 / delta + 0.5) pingLabel.Text = "Ping: " .. player.Ping .. " ms" wait(1) end end) -- === LOGIC AND EVENT CONNECTIONS === local isUIOpen = false local function toggleUI() isUIOpen = not isUIOpen mainFrame.Visible = isUIOpen dinoButton.Visible = not isUIOpen if isUIOpen then logToConsole("Dino Executor V2 Initialized.", "SUCCESS") end end local function showTab(tab) scriptBox.Visible = tab == scriptBox consoleFrame.Visible = tab == consoleFrame searchFrame.Visible = tab == searchFrame scriptsFrame.Visible = tab == scriptsFrame settingsFrame.Visible = tab == settingsFrame end dinoButton.MouseButton1Click:Connect(toggleUI) closeButton.MouseButton1Click:Connect(toggleUI) executeButton.MouseButton1Click:Connect(function() local scriptToRun = scriptBox.Text if settings.clearOnExecute then for _, child in ipairs(consoleScrolling:GetChildren()) do if child:IsA("TextLabel") then child:Destroy() end end end logToConsole("Executing script...", "INFO") local func, compileError = loadstring(scriptToRun) if func then local execSuccess, runtimeError = pcall(func) if execSuccess then logToConsole("Script executed successfully!", "SUCCESS") else logToConsole("Runtime Error: " .. tostring(runtimeError), "ERROR") end else logToConsole("Compilation Error: " .. tostring(compileError), "ERROR") end if settings.autoCloseUI then toggleUI() end end) searchButton.MouseButton1Click:Connect(function() showTab(searchFrame) end) consoleButton.MouseButton1Click:Connect(function() showTab(consoleFrame) end) scriptsButton.MouseButton1Click:Connect(function() showTab(scriptsFrame) end) settingsButton.MouseButton1Click:Connect(function() showTab(settingsFrame) end) -- Default to script editor showTab(scriptBox) logToConsole("Dino Executor V2 Loaded. Press the Dino to begin.", "INFO") end) -- Catch any top-level errors if not success then local player = game.Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local errorGui = Instance.new("ScreenGui", playerGui) local errorLabel = Instance.new("TextLabel", errorGui) errorLabel.Size = UDim2.new(1, 0, 0, 50) errorLabel.Position = UDim2.new(0, 0, 0, 10) errorLabel.BackgroundColor3 = Color3.fromRGB(100, 0, 0) errorLabel.TextColor3 = Color3.fromRGB(255, 255, 255) errorLabel.Font = Enum.Font.GothamBold errorLabel.Text = "Dino Executor V2 Failed to Load: " .. tostring(errorMessage) warn("[Dino Executor V2] Critical Error: " .. tostring(errorMessage)) end