Inputs

To create a input, use this.

local Input = Tabs.Main:AddInput("Input", {
    Title = "Input",
    Description = "Input Description",
    Default = "Default",
    Placeholder = "Placeholder",
    Numeric = false, -- Only allows numbers
    Finished = false, -- Only calls callback when you press enter
    Callback = function(Value)
        print("Input changed:", Value)
    end
})

Change local Input to a different variable name every time. It can be anything.

Input (name of input) is saved in the Options variable.

You can try to remove it, but I've never tried to.

You can get the value anywhere simply by using this: (Put your variable name)

Input.Value

Or, whatever you put as the name of the toggle.

Options.Input.Value

Functions

You can check when the slider is changed, but Callback does the same thing.

Input:OnChanged(function()
    print("Input updated:", Input.Value)
end)

To set the value of a slider, use this.

Input:SetValue("Text")

Last updated