> For the complete documentation index, see [llms.txt](https://kr4k.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kr4k.gitbook.io/documentation/kr4k.md).

# KR4K

KR4K is easy to use. If you intend to use this for a game as a admin panel, or a script for roblox, its easy to implement. Heres the guide. by the way, you can customize the text, except the loadstring.

## Loadstring:

To implement the UI, you need this code inside a executor.

```lua
local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/stysscythe/script/main/LibTest.lua"))()
```

## Creating the UI:

To create the ui, you use this code below the previous code, make sure theres spacing for organization.

```lua
local Window = Library.Window('KR4K Library')
```

you can customize the 'KR4K Library' part to display whatever is to your liking.

## Creating Tabs:

```lua
local Test1 = Window.CreateTab('Welcome!')
```

## Creating Dividers:

```lua
Test1.CreateDivider("Im a divider!")
```

## Creating labels:

```lua
Test1.CreateLabel("i love being a label!")
```

## Creating Buttons:

```lua
Test1.CreateButton("Click me!", function()
	print("Yay! i got clicked!")
end
```

## Creating Toggles:

```lua
Test1.CreateToggle("Print boolean", function(state)
	if state then
		print("Toggled!")
	elseif state == false then
		print("Disabled :(")
	end
end)
```

## Creating Sliders:

```lua
Test1.CreateSlider("Print", 0, 50, function(s)
	print(s)
end)
```

## Creating Textboxes:

```lua
Test1.CreateTextbox("Print Text", function(txt)
	print(txt)
end)
```

## Creating Keybinds:

```lua
Test1.CreateKeybind("Print on key!", Enum.KeyCode.F, function()
	print("im a keybind!")
end)
```

## Toggling ui with keybinds:

```lua
Test1.CreateKeybind("Toggle UI", Enum.KeyCode.RightAlt, function()
	Library:ToggleUI()
end)
```

## Thanks message

thanks for using KR4K library, its a honor to be the ui designer of a future scripter. if you want to contact me, please send a friend request on discord, my tag is kr4k#4503 Thanks! Happy Coding!
