--[ THE QUESTIONS ONLY (DUE TO LIMITS): Roblox, Book, What is a Book? Car and What is Gas? ------------------------------------------------------------ -- GUI CREATION ------------------------------------------------------------ local ScreenGui = Instance.new("ScreenGui", game.CoreGui) local Main = Instance.new("Frame", ScreenGui) Main.Size = UDim2.new(0, 420, 0, 320) Main.Position = UDim2.new(0.5, -210, 0.5, -160) Main.BackgroundColor3 = Color3.fromRGB(245, 245, 245) Main.Active = true Main.Draggable = true ------------------------------------------------------------ -- TOP BAR ------------------------------------------------------------ local Bar = Instance.new("Frame", Main) Bar.Size = UDim2.new(1, 0, 0, 32) Bar.BackgroundColor3 = Color3.fromRGB(240, 240, 240) local Title = Instance.new("TextLabel", Bar) Title.Size = UDim2.new(1, -90, 1, 0) Title.Position = UDim2.new(0, 10, 0, 0) Title.BackgroundTransparency = 1 Title.Font = Enum.Font.SourceSansBold Title.Text = "Google Chrome" Title.TextSize = 18 Title.TextXAlignment = Enum.TextXAlignment.Left -- Fullscreen button local Full = Instance.new("TextButton", Bar) Full.Size = UDim2.new(0, 30, 0, 24) Full.Position = UDim2.new(1, -65, 0, 4) Full.Text = "□" Full.BackgroundColor3 = Color3.fromRGB(220, 220, 220) Full.TextSize = 18 -- Close button local Close = Instance.new("TextButton", Bar) Close.Size = UDim2.new(0, 30, 0, 24) Close.Position = UDim2.new(1, -30, 0, 4) Close.Text = "×" Close.BackgroundColor3 = Color3.fromRGB(255, 80, 80) Close.TextColor3 = Color3.fromRGB(255, 255, 255) Close.TextSize = 18 ------------------------------------------------------------ -- TABS BAR ------------------------------------------------------------ local TabsBar = Instance.new("Frame", Main) TabsBar.Size = UDim2.new(1, 0, 0, 28) TabsBar.Position = UDim2.new(0, 0, 0, 32) TabsBar.BackgroundColor3 = Color3.fromRGB(230, 230, 230) local ListLayout = Instance.new("UIListLayout", TabsBar) ListLayout.FillDirection = Enum.FillDirection.Horizontal ListLayout.Padding = UDim.new(0, 3) ------------------------------------------------------------ -- Q&A DICTIONARY (EXAMPLE — you can replace/add more) ------------------------------------------------------------ local QA = { ["Roblox"] = "Roblox is a world where blocks have more power than humans.", ["What is Roblox"] = "Roblox is a platform where players create games and chaos.", ["Book"] = "A book is a stack of paper that contains portable knowledge.", ["What is a Book?"] = "A book is basically a manual for your brain.", ["Car"] = "A car is a fast metal box that moves with gas and hope.", ["What is Gas?"] = "Gas is the smelly power juice cars drink.", } ------------------------------------------------------------ -- CREATE TAB FUNCTION ------------------------------------------------------------ local Pages = {} local CurrentPage = nil local function CreateTab(name) -------------------------------------------------------- -- TAB BUTTON -------------------------------------------------------- local Tab = Instance.new("TextButton", TabsBar) Tab.Size = UDim2.new(0, 80, 1, 0) Tab.Text = name Tab.BackgroundColor3 = Color3.fromRGB(210, 210, 210) Tab.TextSize = 14 -------------------------------------------------------- -- PAGE -------------------------------------------------------- local Page = Instance.new("Frame", Main) Page.Size = UDim2.new(1, -20, 1, -90) Page.Position = UDim2.new(0, 10, 0, 60) Page.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Page.Visible = false Pages[name] = Page -------------------------------------------------------- -- GOOGLE LOGO -------------------------------------------------------- local Logo = Instance.new("ImageLabel", Page) Logo.Size = UDim2.new(0, 150, 0, 50) -- L2 Medium Logo.Position = UDim2.new(0.5, -75, 0, 5) Logo.BackgroundTransparency = 1 Logo.Image = "rbxassetid://8367028983" -------------------------------------------------------- -- SEARCH BAR -------------------------------------------------------- local SearchBox = Instance.new("TextBox", Page) SearchBox.Size = UDim2.new(0, 260, 0, 32) SearchBox.Position = UDim2.new(0.5, -160, 0, 65) SearchBox.PlaceholderText = "Search something..." SearchBox.BackgroundColor3 = Color3.fromRGB(235, 235, 235) SearchBox.TextSize = 16 local EnterBtn = Instance.new("TextButton", Page) EnterBtn.Size = UDim2.new(0, 70, 0, 32) EnterBtn.Position = UDim2.new(0.5, 105, 0, 65) EnterBtn.Text = "Enter" EnterBtn.BackgroundColor3 = Color3.fromRGB(200, 200, 200) EnterBtn.TextSize = 16 -------------------------------------------------------- -- RESULT BOX -------------------------------------------------------- local Result = Instance.new("TextLabel", Page) Result.Size = UDim2.new(1, -20, 1, -120) Result.Position = UDim2.new(0, 10, 0, 110) Result.BackgroundColor3 = Color3.fromRGB(245, 245, 245) Result.TextWrapped = true Result.TextXAlignment = Enum.TextXAlignment.Left Result.TextYAlignment = Enum.TextYAlignment.Top Result.TextSize = 18 Result.Text = "" -------------------------------------------------------- -- SEARCH FUNCTION -------------------------------------------------------- local function RunSearch() local query = SearchBox.Text if QA[query] then Result.Text = "— " .. QA[query] else Result.Text = "— No results found for: \"" .. query .. "\"" end end EnterBtn.MouseButton1Click:Connect(RunSearch) SearchBox.FocusLost:Connect(function(enter) if enter then RunSearch() end end) -------------------------------------------------------- -- TAB CLICK SWITCHING -------------------------------------------------------- Tab.MouseButton1Click:Connect(function() for _, pg in pairs(Pages) do pg.Visible = false end Page.Visible = true CurrentPage = Page end) -------------------------------------------------------- -- AUTO SELECT FIRST TAB -------------------------------------------------------- if not CurrentPage then Page.Visible = true CurrentPage = Page end end ------------------------------------------------------------ -- DEFAULT TABS ------------------------------------------------------------ CreateTab("Google") CreateTab("Tab 2") CreateTab("Tab 3") ------------------------------------------------------------ -- FULLSCREEN TOGGLE ------------------------------------------------------------ local Maximized = false local oldSize, oldPos = Main.Size, Main.Position Full.MouseButton1Click:Connect(function() if Maximized == false then oldSize = Main.Size oldPos = Main.Position Main.Size = UDim2.new(1, -40, 1, -40) Main.Position = UDim2.new(0, 20, 0, 20) Full.Text = "▭" Maximized = true else Main.Size = oldSize Main.Position = oldPos Full.Text = "□" Maximized = false end end) ------------------------------------------------------------ -- CLOSE BUTTON ------------------------------------------------------------ Close.MouseButton1Click:Connect(function() ScreenGui:Destroy() end)