local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "MaximusHub" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0.3, 0, 0.4, 0) MainFrame.Position = UDim2.new(0.35, 0, 0.3, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) MainFrame.BorderSizePixel = 0 MainFrame.Parent = ScreenGui local TitleText = Instance.new("TextLabel") TitleText.Name = "TitleText" TitleText.Text = "Maximus Hub" TitleText.Font = Enum.Font.SourceSansBold TitleText.TextSize = 20 TitleText.TextColor3 = Color3.fromRGB(255, 255, 255) TitleText.BackgroundTransparency = 1 TitleText.Position = UDim2.new(0.05, 0, 0.05, 0) TitleText.Size = UDim2.new(0.9, 0, 0.1, 0) TitleText.AnchorPoint = Vector2.new(0, 0) TitleText.Parent = MainFrame local SubtitleText = Instance.new("TextLabel") SubtitleText.Name = "SubtitleText" SubtitleText.Text = "S1mple Hub" SubtitleText.Font = Enum.Font.SourceSansBold SubtitleText.TextSize = 12 SubtitleText.TextColor3 = Color3.fromRGB(255, 0, 0) SubtitleText.BackgroundTransparency = 1 SubtitleText.Position = UDim2.new(0.05, 0, 0.15, 0) SubtitleText.Size = UDim2.new(0.9, 0, 0.05, 0) SubtitleText.AnchorPoint = Vector2.new(0, 0) SubtitleText.Parent = MainFrame local DragText = Instance.new("TextLabel") DragText.Name = "DragText" DragText.Text = "Drag me!" DragText.Font = Enum.Font.SourceSansLight DragText.TextSize = 10 DragText.TextColor3 = Color3.fromRGB(200, 200, 200) DragText.BackgroundTransparency = 1 DragText.Position = UDim2.new(0.8, 0, 0.05, 0) DragText.Size = UDim2.new(0.15, 0, 0.05, 0) DragText.AnchorPoint = Vector2.new(1, 0) DragText.Parent = MainFrame local CloseButton = Instance.new("TextButton") CloseButton.Name = "CloseButton" CloseButton.Text = "X" CloseButton.Font = Enum.Font.SourceSansBold CloseButton.TextSize = 18 CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255) CloseButton.BackgroundColor3 = Color3.fromRGB(1, 1, 1) CloseButton.BackgroundTransparency = 1 CloseButton.BorderSizePixel = 0 CloseButton.Position = UDim2.new(0.9, 0, 0.025, 0) CloseButton.Size = UDim2.new(0.075, 0, 0.075, 0) CloseButton.AnchorPoint = Vector2.new(1, 0) CloseButton.Parent = MainFrame CloseButton.MouseButton1Click:Connect(function() ScreenGui:Destroy() end) local Separator = Instance.new("Frame") Separator.Name = "Separator" Separator.Size = UDim2.new(0.95, 0, 0.005, 0) Separator.Position = UDim2.new(0.025, 0, 0.25, 0) Separator.BackgroundColor3 = Color3.fromRGB(80, 80, 80) Separator.BorderSizePixel = 0 Separator.Parent = MainFrame local ButtonsFrame = Instance.new("Frame") ButtonsFrame.Name = "ButtonsFrame" ButtonsFrame.Size = UDim2.new(0.3, 0, 0.65, 0) ButtonsFrame.Position = UDim2.new(0.025, 0, 0.3, 0) ButtonsFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) ButtonsFrame.BorderSizePixel = 0 ButtonsFrame.Parent = MainFrame local ContentFrame = Instance.new("Frame") ContentFrame.Name = "ContentFrame" ContentFrame.Size = UDim2.new(0.625, 0, 0.65, 0) ContentFrame.Position = UDim2.new(0.35, 0, 0.3, 0) ContentFrame.BackgroundColor3 = Color3.fromRGB(70, 70, 70) ContentFrame.BorderSizePixel = 0 ContentFrame.Parent = MainFrame local function createButton(text, yPosition) local button = Instance.new("TextButton") button.Name = text .. "Button" button.Text = text button.Font = Enum.Font.SourceSansBold button.TextSize = 16 button.TextColor3 = Color3.fromRGB(255, 255, 255) button.BackgroundColor3 = Color3.fromRGB(80, 80, 80) button.BorderSizePixel = 0 button.Size = UDim2.new(1, 0, 0.15, 0) button.Position = UDim2.new(0, 0, yPosition, 0) button.Parent = ButtonsFrame return button end local infoButton = createButton("Info", 0) local creditsButton = createButton("Credits", 0.15) local executorButton = createButton("Executor", 0.3) local function clearContent() for _, obj in pairs(ContentFrame:GetChildren()) do if obj:IsA("GuiObject") then obj:Destroy() end end end local infoContent = Instance.new("Frame") infoContent.Name = "InfoContent" infoContent.Size = UDim2.new(0.9, 0, 0.9, 0) infoContent.Position = UDim2.new(0.05, 0, 0.05, 0) infoContent.BackgroundColor3 = Color3.fromRGB(100, 100, 100) infoContent.BorderSizePixel = 0 infoContent.Parent = ContentFrame local currentContent = infoContent local function showContent(newContent) if currentContent then currentContent:Destroy() end newContent.Parent = ContentFrame currentContent = newContent end infoButton.MouseButton1Click:Connect(function() clearContent() local newInfoContent = Instance.new("Frame") newInfoContent.Name = "InfoContent" newInfoContent.Size = UDim2.new(0.9, 0, 0.9, 0) newInfoContent.Position = UDim2.new(0.05, 0, 0.05, 0) newInfoContent.BackgroundColor3 = Color3.fromRGB(100, 100, 100) newInfoContent.BorderSizePixel = 0 newInfoContent.Parent = ContentFrame currentContent = newInfoContent end) creditsButton.MouseButton1Click:Connect(function() clearContent() local creditsTextLabel = Instance.new("TextLabel") creditsTextLabel.Name = "CreditsText" creditsTextLabel.Text = "not finished :/"