0% found this document useful (0 votes)
49 views3 pages

Tutorial de Componente

The document provides a script for creating a user interface (UI) in Roblox using a library. It includes functionalities such as creating tabs, buttons, toggles, textboxes, sliders, and dropdowns, along with notifications and code displays. Additionally, it mentions the option to use a different loadstring for themes and credits the original creator.

Uploaded by

v41625141
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views3 pages

Tutorial de Componente

The document provides a script for creating a user interface (UI) in Roblox using a library. It includes functionalities such as creating tabs, buttons, toggles, textboxes, sliders, and dropdowns, along with notifications and code displays. Additionally, it mentions the option to use a different loadstring for themes and credits the original creator.

Uploaded by

v41625141
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

-- AVISO, AQUI NO LOADSTRING embaixo se pode substuir Por

loadstring(game:HttpGet("https://raw.githubusercontent.com/igormsqq/UI-LIB/refs/
heads/main/UI-LIBRARY"))() pra ter os temas mas essa Ui que te passei Tem os temas
e a mesma da original
local Library =
loadstring(game:HttpGet("https://raw.githubusercontent.com/x2zu/OPEN-SOURCE-UI-
ROBLOX/refs/heads/main/X2ZU%20UI%20ROBLOX%20OPEN%20SOURCE/DummyUi-leak-by-x2zu/
fetching-main/Tools/Framework.luau"))()

-- CRIA TUDO
-- Create Main Window
local Window = Library:Window({
Title = "x2zu [ Stellar ]",
Desc = "x2zu on top",
Icon = 105059922903197,
Theme = "Dark",
Config = {
Keybind = Enum.KeyCode.LeftControl,
Size = UDim2.new(0, 500, 0, 400) -- TAMANHO DA UI
},
CloseUIButton = {
Enabled = true,
Text = "x2zu"
}
})

-- NÃO SEI BEM MAS VE DPS

-- Sidebar Vertical Separator


local SidebarLine = Instance.new("Frame")
SidebarLine.Size = UDim2.new(0, 1, 1, 0)
SidebarLine.Position = UDim2.new(0, 140, 0, 0) -- adjust if needed
SidebarLine.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
SidebarLine.BorderSizePixel = 0
SidebarLine.ZIndex = 5
SidebarLine.Name = "SidebarLine"
SidebarLine.Parent = game:GetService("CoreGui") -- Or Window.Gui if accessible

-- CRIA A TAB

-- COLOCA O NOME QUE QUER NA TAB EM local nomeTab

local Tab = Window:Tab({Title = "Main", Icon = "star"}) do


-- SEÇÃO TBM COLOCA NOME NO INICIO O NOME DA TAB
Tab:Section({Title = "All UI Components"})

-- ESSE E O TOGGLE NO CALLBACK COLOCA ALGO E COLOCA O NOME DA TAB NO INICIO

-- Toggle
Tab:Toggle({
Title = "Enable Feature",
Desc = "Toggle to enable or disable the feature",
Value = false,
Callback = function(v)
print("Toggle:", v)
end
})

-- E UM BOTAO COLOCA TAB NO INICIO O NOME DA TAB


-- Button
Tab:Button({
Title = "Run Action",
Desc = "Click to perform something",
Callback = function()
print("Button clicked!")
Window:Notify({
Title = "Button",
Desc = "Action performed successfully.",
Time = 3
})
end
})

-- Textbox normal

-- Textbox
Tab:Textbox({
Title = "Input Text",
Desc = "Type something here",
Placeholder = "Enter value",
Value = "",
ClearTextOnFocus = false,
Callback = function(text)
print("Textbox value:", text)
end
})

-- nem preciso explicar

-- Slider
Tab:Slider({
Title = "Set Speed",
Min = 0,
Max = 100,
Rounding = 0,
Value = 25,
Callback = function(val)
print("Slider:", val)
end
})

-- tambem não precios explica e uma dropdown

-- Dropdown
Tab:Dropdown({
Title = "Choose Option",
List = {"Option 1", "Option 2", "Option 3"},
Value = "Option 1",
Callback = function(choice)
print("Selected:", choice)
end
})

-- aqui e meio inutil mas e daorinha e meio que Uma caixa de codigo

-- Code Display
local CodeBlock = Tab:Code({
Title = "Example Code",
Code = "-- This is a code preview\nprint('Hello world')"
})

-- Simulate update
task.delay(5, function()
CodeBlock:SetCode("-- Updated!\nprint('New content loaded')")
end)
end

-- Line Separator
Window:Line()

-- aq e criacao de tab e aliad não precisava colocar nomeTab nos componentes era so
nome

-- Another Tab Example


local Extra = Window:Tab({Title = "Extra", Icon = "tag"}) do
Extra:Section({Title = "About"})
Extra:Button({
Title = "Show Message",
Desc = "Display a popup",
Callback = function()
Window:Notify({
Title = "Fluent UI",
Desc = "Everything works fine!",
Time = 3
})
end
})
end
Window:Line()
local Extra = Window:Tab({Title = "Settings", Icon = "wrench"}) do
Extra:Section({Title = "Config"})
Extra:Button({
Title = "Show Message",
Desc = "Display a popup",
Callback = function()
Window:Notify({
Title = "Fluent UI",
Desc = "Everything works fine!",
Time = 3
})
end
})
end

-- inutil mas e interessante


-- Final Notification
Window:Notify({
Title = "x2zu",
Desc = "All components loaded successfully! Credits leak: @x2zu",
Time = 4
})

You might also like