Sections
Everything in your container must belong to a section. To get started, we must create a section. There are two different section types that you can add. A normal section, or a dropdown section.
Basic Section
-- Client Package
UI, Service = nil, nil
return function()
local Container = UI.New("Test Container")
local Section = Container:AddSection("Section 1") -- Create our basic section
Section:AddItem("Button", { -- Add a button to the section
Text = "Kill Me"; -- This button will display "Kill Me"
Function = function()
Service.Players.LocalPlayer.Character.Humanoid.Health = 0
end;
})
end
This will create a section and add a button to it. This button will display "Kill Me" and will kill you when you click it.
Last updated
Was this helpful?