Last updated: Aug 1, 20262 min read

Creating Sections

Sections are collapsible card containers that group related input elements inside a tab page.

Collapsible Section#

LUA Script
1local Section = Tab:CreateSection(name)
  • name (string): Title of the section card. It automatically features a collapse arrow and a status bullet.

Complete Code Example#

Here is a complete copy-pasteable script showing how to instantiate sections to organize your script elements:

LUA Script
1local ValincUi = loadstring(game:HttpGet("https://cdn.vinzhub.com/scripts/Liblery%20Ui/VALINC-QUARTZ/57319f29599c47672f19f8d56d53ffbe/a6b3ccb1f04d1d7d06232a9c5d25779e2af89c12992bebae.lua"))()
2
3local Window = ValincUi:CreateWindow("Structured Hub", "list", "gold")
4local Tab = Window:CreateTab("Automation")
5
6-- Instantiate two separate section containers
7local MainSection = Tab:CreateSection("Auto Farming Controls")
8local ConfigSection = Tab:CreateSection("Extra Settings")
9
10-- Add components to the sections
11MainSection:CreateToggle("Enable Farm", false, function(val)
12 print("Auto Farm: " .. tostring(val))
13end, "Start automated quest loops.")
14
15ConfigSection:CreateSlider("Farming Speed", 1, 10, 5, function(val)
16 print("Farming Speed Set To: " .. tostring(val))
17end, "Speed rate multiplier.")