Skip to content
On this page

Getting Started

On this page

Load Window

lua
local WindUI = loadstring(game:HttpGet("https://tree-hub.vercel.app/api/UI/WindUI"))()
1

Selected version

lua
local Version = "1.4.0"
local WindUI = loadstring(game:HttpGet("https://tree-hub.vercel.app/api/UI/WindUI/" .. Version))()
1
2

Window

Create Window

lua
local Window = WindUI:CreateWindow({
    Title = "WindUI Library", -- UI Title
    Icon = "image", -- Url or rbxassetid or lucide
    Author = ".ftgs", -- Author & Creator
    Folder = "CloudHub", -- Folder name for saving data (And key)
    Size = UDim2.fromOffset(580, 460), -- UI Size
    KeySystem = { -- Creates key system
        Key = "1234", -- key
        Note = "The Key is 1234", -- Note
        URL = "https://github.com/Footagesus/WindUI", -- URL To get key (example: Discord)
        SaveKey = true, -- Saves the key in the folder specified above
    }, 
    Transparent = true,-- UI Transparency
    Theme = "Dark", -- UI Theme
    SideBarWidth = 170, -- UI Sidebar Width (number)
    HasOutline = true, -- Adds Oultines to the window
})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

Customizing Open-Button

lua
Window:EditOpenButton({
    Title = "Open Button",
    Icon = "door-closed",
    Color = ColorSequence.new(
        Color3.fromHex("FF0F7B"), 
        Color3.fromHex("F89B29")
    )
})
1
2
3
4
5
6
7
8

Notification

Create default Notification

lua
local Notification = WindUI:Notify({
    Title = "Notification",
    Content = "Content",
    Duration = 5,
})
1
2
3
4
5

Create Notification with Buttons Outdated

Doesn't work
lua
local Notification
Notification = WindUI:Notify({
    Title = "Question",
    Content = "Would you like to die?",
    CanClose = false, -- dont allow to close the notification
    --Duration = 5, -- removing duration
    Callback = function(Button)  -- Callback
        if Button == "Confirm" then
            game.Players.LocalPlayer.Character.Humanoid.Health = 0
        else
            print("Canceled..")
        end
        -- Closing Notification
        Notification:Close()
    end
})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

Close Notification

lua
Notification:Close()
1

Dialog

Create Dialog

lua
local Dialog = Window:Dialog({
    Title = "Welcome", -- Dialog Title
    Content = "Thanks for using my script", -- Dialog Content
    Buttons = { -- Dialog Buttons
        {
            Title = "OK!", -- Button title
            Callback = nil -- function() end
        },
    }
})

1
2
3
4
5
6
7
8
9
10
11

Open Dialog

lua
Dialog:Open()
1

Connect Dialog to Button

lua
local Button = MainTab:Button({
    Title = "Button Main",
    Desc = "Button Desc",
    Callback = function()
        Window:Dialog({
            Title = "Dialog haha",
            Content = "Dialog Content",
            Buttons = {
                {
                    Title = "Confirm",
                    Callback = function()
                        print("confirm")
                    end
                },
                {
                    Title = "Cancel",
                    Callback = function()
                        print("cancel")
                    end
                },
                {
                    Title = "Idk",
                    Callback = function()
                        print("idk")
                    end
                }
            }
        }):Open()
    end,
})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

Made with ❤️ by Footages