-- ================= SUFFIX-Ui Library & Example Bundle ================= local SUFFIX = {} SUFFIX.__index = SUFFIX local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local CoreGui = game:GetService("CoreGui") function SUFFIX:CreateWindow(config) config = config or {} local windowTitle = config.Title or "SUFFIX-Ui" local self = setmetatable({}, SUFFIX) -- Create ScreenGui local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "SUFFIX_UI_Library" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = CoreGui -- Main Window Box (430 x 260) local Box = Instance.new("Frame") Box.Name = "SUFFIXBox" Box.Size = UDim2.new(0, 430, 0, 260) Box.Position = UDim2.new(0.5, -215, 0.5, -130) Box.BackgroundColor3 = Color3.fromRGB(20, 20, 20) Box.BorderSizePixel = 0 Box.Parent = ScreenGui local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 6) UICorner.Parent = Box local UIStroke = Instance.new("UIStroke") UIStroke.Color = Color3.fromRGB(45, 45, 45) UIStroke.Thickness = 1 UIStroke.Parent = Box -- Top Header Bar & Drag System local TopBar = Instance.new("Frame") TopBar.Name = "TopBar" TopBar.Size = UDim2.new(1, 0, 0, 36) TopBar.BackgroundTransparency = 1 TopBar.Parent = Box local dragging, dragInput, dragStart, startPos TopBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = Box.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) TopBar.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - dragStart Box.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) -- Title Label local Title = Instance.new("TextLabel") Title.Size = UDim2.new(0, 160, 1, 0) Title.Position = UDim2.new(0, 12, 0, 0) Title.BackgroundTransparency = 1 Title.Text = windowTitle Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 15 Title.Font = Enum.Font.GothamBold Title.TextXAlignment = Enum.TextXAlignment.Left Title.Parent = TopBar local SubTitle = Instance.new("TextLabel") SubTitle.Size = UDim2.new(0, 160, 1, 0) SubTitle.Position = UDim2.new(0, 85, 0, 0) SubTitle.BackgroundTransparency = 1 SubTitle.Text = "| Library" SubTitle.TextColor3 = Color3.fromRGB(140, 140, 140) SubTitle.TextSize = 12 SubTitle.Font = Enum.Font.Gotham SubTitle.TextXAlignment = Enum.TextXAlignment.Left SubTitle.Parent = TopBar -- Minimize Button (-) local MinimizeButton = Instance.new("TextButton") MinimizeButton.Size = UDim2.new(0, 26, 0, 26) MinimizeButton.AnchorPoint = Vector2.new(1, 0.5) MinimizeButton.Position = UDim2.new(1, -8, 0.5, 0) MinimizeButton.BackgroundColor3 = Color3.fromRGB(28, 28, 28) MinimizeButton.Text = "-" MinimizeButton.TextColor3 = Color3.fromRGB(200, 200, 200) MinimizeButton.TextSize = 16 MinimizeButton.Font = Enum.Font.GothamBold MinimizeButton.Parent = TopBar local MinButtonCorner = Instance.new("UICorner") MinButtonCorner.CornerRadius = UDim.new(0, 4) MinButtonCorner.Parent = MinimizeButton local HeaderLine = Instance.new("Frame") HeaderLine.Size = UDim2.new(1, 0, 0, 1) HeaderLine.Position = UDim2.new(0, 0, 1, 0) HeaderLine.BackgroundColor3 = Color3.fromRGB(255, 255, 255) HeaderLine.BackgroundTransparency = 0.75 HeaderLine.BorderSizePixel = 0 HeaderLine.Parent = TopBar -- Content Main Container local ContentMain = Instance.new("Frame") ContentMain.Size = UDim2.new(1, 0, 1, -36) ContentMain.Position = UDim2.new(0, 0, 0, 36) ContentMain.BackgroundTransparency = 1 ContentMain.Parent = Box local isMinimized = false MinimizeButton.MouseButton1Click:Connect(function() isMinimized = not isMinimized if isMinimized then ContentMain.Visible = false Box:TweenSize(UDim2.new(0, 430, 0, 36), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.15, true) MinimizeButton.Text = "+" else Box:TweenSize(UDim2.new(0, 430, 0, 260), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.15, true) task.wait(0.1) ContentMain.Visible = true MinimizeButton.Text = "-" end end) -- Icon Sidebar Layout local SIDEBAR_WIDTH = 46 local TabSidebar = Instance.new("Frame") TabSidebar.Size = UDim2.new(0, SIDEBAR_WIDTH, 1, 0) TabSidebar.BackgroundTransparency = 1 TabSidebar.Parent = ContentMain local TabLine = Instance.new("Frame") TabLine.Size = UDim2.new(0, 1, 1, 0) TabLine.Position = UDim2.new(1, 0, 0, 0) TabLine.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TabLine.BackgroundTransparency = 0.75 TabLine.BorderSizePixel = 0 TabLine.Parent = TabSidebar local TabList = Instance.new("ScrollingFrame") TabList.Size = UDim2.new(1, 0, 1, -8) TabList.Position = UDim2.new(0, 0, 0, 4) TabList.BackgroundTransparency = 1 TabList.BorderSizePixel = 0 TabList.ScrollBarThickness = 0 TabList.Parent = TabSidebar local TabListLayout = Instance.new("UIListLayout") TabListLayout.SortOrder = Enum.SortOrder.LayoutOrder TabListLayout.Padding = UDim.new(0, 6) TabListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center TabListLayout.Parent = TabList local TabListPadding = Instance.new("UIPadding") TabListPadding.PaddingTop = UDim.new(0, 4) TabListPadding.Parent = TabList -- Content Area (Right Side) local ContentArea = Instance.new("Frame") ContentArea.Size = UDim2.new(1, -SIDEBAR_WIDTH, 1, 0) ContentArea.Position = UDim2.new(0, SIDEBAR_WIDTH, 0, 0) ContentArea.BackgroundTransparency = 1 ContentArea.Parent = ContentMain self.TabButtons = {} self.Pages = {} self.TabList = TabList self.ContentArea = ContentArea self.ScreenGui = ScreenGui return self end function SUFFIX:CreateTab(iconInput) local icon = iconInput or "rbxassetid://14456045412" local TabBtn = Instance.new("ImageButton") TabBtn.Size = UDim2.new(0, 34, 0, 34) TabBtn.BackgroundColor3 = Color3.fromRGB(28, 28, 28) TabBtn.BorderSizePixel = 0 if icon:find("rbxassetid://") or icon:find("rbxthumb://") then TabBtn.Image = icon else TabBtn.Image = "rbxassetid://14456045412" end TabBtn.ImageColor3 = Color3.fromRGB(150, 150, 150) TabBtn.Parent = self.TabList local Corner = Instance.new("UICorner") Corner.CornerRadius = UDim.new(0, 6) Corner.Parent = TabBtn -- Page Scrolling Frame local Page = Instance.new("ScrollingFrame") Page.Size = UDim2.new(1, 0, 1, 0) Page.BackgroundTransparency = 1 Page.BorderSizePixel = 0 Page.ScrollBarThickness = 3 Page.Visible = false Page.Parent = self.ContentArea local PageLayout = Instance.new("UIListLayout") PageLayout.SortOrder = Enum.SortOrder.LayoutOrder PageLayout.Padding = UDim.new(0, 6) PageLayout.Parent = Page local PagePadding = Instance.new("UIPadding") PagePadding.PaddingTop = UDim.new(0, 10) PagePadding.PaddingLeft = UDim.new(0, 10) PagePadding.PaddingRight = UDim.new(0, 10) PagePadding.Parent = Page table.insert(self.TabButtons, TabBtn) table.insert(self.Pages, Page) if #self.Pages == 1 then Page.Visible = true TabBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 45) TabBtn.ImageColor3 = Color3.fromRGB(255, 255, 255) end TabBtn.MouseButton1Click:Connect(function() for _, p in ipairs(self.Pages) do p.Visible = false end for _, t in ipairs(self.TabButtons) do t.BackgroundColor3 = Color3.fromRGB(28, 28, 28) t.ImageColor3 = Color3.fromRGB(150, 150, 150) end Page.Visible = true TabBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 45) TabBtn.ImageColor3 = Color3.fromRGB(255, 255, 255) end) local TabObj = {} function TabObj:CreateSection(sectionText) local SecLabel = Instance.new("TextLabel") SecLabel.Size = UDim2.new(1, 0, 0, 20) SecLabel.BackgroundTransparency = 1 SecLabel.Text = " " .. sectionText SecLabel.TextColor3 = Color3.fromRGB(160, 160, 160) SecLabel.TextSize = 12 SecLabel.Font = Enum.Font.GothamBold SecLabel.TextXAlignment = Enum.TextXAlignment.Left SecLabel.Parent = Page return SecLabel end function TabObj:CreateButton(name, callback) local Btn = Instance.new("TextButton") Btn.Size = UDim2.new(1, 0, 0, 30) Btn.BackgroundColor3 = Color3.fromRGB(28, 28, 28) Btn.Text = " " .. name Btn.TextColor3 = Color3.fromRGB(230, 230, 230) Btn.Font = Enum.Font.GothamMedium Btn.TextSize = 13 Btn.TextXAlignment = Enum.TextXAlignment.Left Btn.Parent = Page local BtnCorner = Instance.new("UICorner") BtnCorner.CornerRadius = UDim.new(0, 6) BtnCorner.Parent = Btn Btn.MouseButton1Click:Connect(function() if callback then pcall(callback) end end) return Btn end function TabObj:CreateToggle(name, defaultState, callback) local toggled = defaultState or false local ToggleBtn = Instance.new("TextButton") ToggleBtn.Size = UDim2.new(1, 0, 0, 30) ToggleBtn.BackgroundColor3 = Color3.fromRGB(28, 28, 28) ToggleBtn.Text = " " .. name ToggleBtn.TextColor3 = Color3.fromRGB(230, 230, 230) ToggleBtn.Font = Enum.Font.GothamMedium ToggleBtn.TextSize = 13 ToggleBtn.TextXAlignment = Enum.TextXAlignment.Left ToggleBtn.Parent = Page local ToggleCorner = Instance.new("UICorner") ToggleCorner.CornerRadius = UDim.new(0, 6) ToggleCorner.Parent = ToggleBtn local StatusIndicator = Instance.new("Frame") StatusIndicator.Size = UDim2.new(0, 12, 0, 12) StatusIndicator.AnchorPoint = Vector2.new(1, 0.5) StatusIndicator.Position = UDim2.new(1, -10, 0.5, 0) StatusIndicator.BackgroundColor3 = toggled and Color3.fromRGB(0, 255, 120) or Color3.fromRGB(60, 60, 60) StatusIndicator.Parent = ToggleBtn local IndicatorCorner = Instance.new("UICorner") IndicatorCorner.CornerRadius = UDim.new(1, 0) IndicatorCorner.Parent = StatusIndicator ToggleBtn.MouseButton1Click:Connect(function() toggled = not toggled StatusIndicator.BackgroundColor3 = toggled and Color3.fromRGB(0, 255, 120) or Color3.fromRGB(60, 60, 60) if callback then pcall(function() callback(toggled) end) end end) return ToggleBtn end function TabObj:CreateLabel(text) local Lbl = Instance.new("TextLabel") Lbl.Size = UDim2.new(1, 0, 0, 24) Lbl.BackgroundTransparency = 1 Lbl.Text = " " .. text Lbl.TextColor3 = Color3.fromRGB(180, 180, 180) Lbl.TextSize = 12 Lbl.Font = Enum.Font.Gotham Lbl.TextXAlignment = Enum.TextXAlignment.Left Lbl.Parent = Page return Lbl end return TabObj end function SUFFIX:Close(windowInstance) if windowInstance and windowInstance.ScreenGui then windowInstance.ScreenGui:Destroy() end end -- ================= EXAMPLE IMPLEMENTATION ================= local Window = SUFFIX:CreateWindow({ Title = "SUFFIX-Ui" }) -- Create Tabs with your asset IDs local HomeTab = Window:CreateTab("rbxassetid://14456045412") local CombatTab = Window:CreateTab("rbxassetid://4391741881") local SettingsTab = Window:CreateTab("rbxassetid://134515081025675") -- Populate Home Tab HomeTab:CreateSection("Welcome") HomeTab:CreateLabel("SUFFIX-Ui Library loaded successfully.") HomeTab:CreateButton("Print Hello", function() print("Hello from SUFFIX-Ui!") end) -- Populate Combat Tab CombatTab:CreateSection("Combat Cheats") CombatTab:CreateToggle("Godmode", false, function(state) print("Godmode is now: " .. tostring(state)) end) CombatTab:CreateToggle("Kill Aura", true, function(state) print("Kill Aura is now: " .. tostring(state)) end) -- Populate Settings Tab SettingsTab:CreateSection("Configuration") SettingsTab:CreateButton("Unload UI", function() SUFFIX:Close(Window) end)