Document

Kncrypt Hub - Interface Document

Source Code in Github

Creating Library

local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/3345-c-a-t-s-u-s/Harmony/refs/heads/main/src/init.luau"))();

Library Setting

Library.EnableIcon = true; -- <boolean> enable / disable Icon

Creating Window

local Window = Library.new({
	Title = "Harmony Library "..Library.Version,
	Scale = UDim2.new(0, 500, 0, 345),
	Keybind = Enum.KeyCode.LeftAlt,
})
Title    <string>
Scale    <UDim2>
Keybind  <EmumItem>

Creating Tab

local ExampleTab = Window:AddTab({
	Title = "Example",
	Icon = "book"
});
Title  <string>
Icon   <string>

Creating Section

local GeneralSection = ExampleTab:AddSection({
	Title = "General"
});
Title <string>

Button

GeneralSection:AddButton({
	Title = "Button",
	Callback = function()
		print('Click!')
	end,
});
Title    <string>
Callback <function>

Button Functions

Button:Fire(...)
Button:Destroy()

Toggle

GeneralSection:AddToggle({
	Title = "Toggle",
	Default = false,
	Callback = function(value)
		print(value)
	end,
});
Title    <string>
Default  <boolean>
Callback <function>

Toggle Functions

Toggle:SetValue(<boolean>)
Toggle:Destroy()

Slider

GeneralSection:AddSlider({
	Title = "Slider",
	Min = 1,
	Max = 100,
	Default = 10,
	Rounding = 1,
	Callback = function(value)
		print(value)
	end,
});
Title    <string>
Min      <number>
Max      <number>
Default  <number>
Rounding <number>
Callback <function>

Slider Functions

Slider:SetValue(<number>)
Slider:Destroy()

Keybind

GeneralSection:AddKeybind({
	Title = "Keybind",
	Default = Enum.KeyCode.X,
	Callback = function(value)
		print(value)
	end,
});
Title    <string>
Default  <EnumItem,string>
Callback <function>

Keybind Functions

Keybind:SetValue(<EnumItem , string>)
Keybind:Destroy()

Textbox

GeneralSection:AddTextbox({
	Title = "Textbox",
	Placeholder = "Placeholder",
	Default = "",
	Callback = function(value)
		print(value)
	end,
});
Title        <string>
Default      <string>
Placeholder  <string>
Callback     <function>

Textbox Functions

Textbox:SetValue(<string>)
Textbox:Destroy()

Single

GeneralSection:AddDropdown({
	Title = "Single Dropdown",
	Values = {"Value 1","Value 2","Value 3"},
	Default = 'Value 1',
	Callback = function(value)
		print(value)
	end,
});

Multiple

GeneralSection:AddDropdown({
	Title = "Multi Dropdown",
	Values = {"Value 1","Value 2","Value 3","Value 4","Value 5"},
	Default = {"Value 1"},
	Multi = true,
	Callback = function(value)
		print(value)
	end,
});
Title        <string>
Values       <table>
Default      <any>
Multi        <boolean>
Callback     <function>
Dropdown:SetValues(<table>)
Dropdown:SetDefault(<any>)
Dropdown:Destroy()

Paragraph

GeneralSection:AddParagraph({
    Title = 'Paragraph',
    Content = "Hello sir\ni'm travit skot\ni need 2,000 dollars to get back to amareka\nsend paypal sir"
})
Title   <string>
Content <string>

Paragraph Functions

Paragraph:SetContent(<string>)
Paragraph:SetTitle(<string>)

Last updated