KR4K
How to use 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.
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.
local Window = Library.Window('KR4K Library')
you can customize the 'KR4K Library' part to display whatever is to your liking.
Creating Tabs:
local Test1 = Window.CreateTab('Welcome!')
Creating Dividers:
Test1.CreateDivider("Im a divider!")
Creating labels:
Test1.CreateLabel("i love being a label!")
Creating Buttons:
Test1.CreateButton("Click me!", function()
print("Yay! i got clicked!")
end
Creating Toggles:
Test1.CreateToggle("Print boolean", function(state)
if state then
print("Toggled!")
elseif state == false then
print("Disabled :(")
end
end)
Creating Sliders:
Test1.CreateSlider("Print", 0, 50, function(s)
print(s)
end)
Creating Textboxes:
Test1.CreateTextbox("Print Text", function(txt)
print(txt)
end)
Creating Keybinds:
Test1.CreateKeybind("Print on key!", Enum.KeyCode.F, function()
print("im a keybind!")
end)
Toggling ui with keybinds:
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!
Last updated