A clean, loadstring-compatible Roblox UI library. Rayfield-inspired API. Built for script developers.
local RazLib = loadstring(game:HttpGet("https://razzles.xyz/RazLib"))()
local Window = RazLib:CreateWindow({
Name = "My Script",
LoadingTitle = "RazLib",
LoadingSubtitle = "by Razzles",
Theme = "Default",
ToggleKeybind = Enum.KeyCode.LeftControl,
ConfigurationSaving = {
Enabled = true,
FolderName = "MyScript",
FileName = tostring(game.PlaceId)
}
})
local Tab = Window:CreateTab("Main")
Tab:CreateSection("Combat")
Tab:CreateToggle({
Name = "God Mode",
CurrentValue = false,
Callback = function(v)
-- v is true/false
end
})
Tab:CreateSlider({
Name = "Walk Speed",
Range = {16, 200},
Increment = 1,
CurrentValue = 16,
Suffix = " studs/s",
Callback = function(v)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = v
end
})
Tab:CreateButton({
Name = "Teleport to Spawn",
Description = "Teleports your character to the spawn",
Callback = function()
-- do something
end
})
Creates the main UI window. Returns a Window object.
| Setting | Type | Default | Description |
|---|---|---|---|
Name | string | "RazLib" | Window title text |
LoadingTitle | string | "RazLib" | Loader screen header |
LoadingSubtitle | string | "by Raz" | Loader screen sub-text |
Theme | string | table | "Default" | Theme name or custom theme table |
ToggleKeybind | Enum.KeyCode | LeftControl | Show/hide keybind |
ShowText | string | "Show" | Mobile button label |
Discord.Enabled | bool | false | Show Discord button |
Discord.Invite | string | "" | discord.gg invite code |
ConfigurationSaving.Enabled | bool | false | Save element states to file |
KeySystem | bool | false | Enable key gate |
Adds a tab. Returns a Tab object.
Switch theme at runtime.
| Method | Returns | Description |
|---|---|---|
Tab:CreateSection(name) | — | Divider label |
Tab:CreateLabel(text, color?) | {Set} | Static text row |
Tab:CreateButton({Name, Description?, Callback}) | — | Clickable row with ripple effect |
Tab:CreateToggle({Name, CurrentValue, Callback}) | {Set} | Checkbox toggle |
Tab:CreateSlider({Name, Range, Increment, CurrentValue, Suffix?, Callback}) | {Set} | Drag slider with value box |
Tab:CreateInput({Name, PlaceholderText, CurrentValue?, Callback}) | {Set} | Text input field |
Tab:CreateDropdown({Name, Options, CurrentOption, MultipleOptions?, Callback}) | {Set, Refresh} | Single or multi-select dropdown |
Tab:CreateKeybind({Name, CurrentKeybind, HoldToInteract?, Callback}) | {Set} | Key-capture input |
Tab:CreateColorPicker({Name, Color, Callback}) | {Set} | HSV color picker |
Shows a slide-in notification. Returns an object with :Dismiss().
Shows a Yes/No confirmation dialog with a countdown timer. Callback receives (yes: bool, no: bool).
Pass the theme name string to Theme in CreateWindow, or call Window:SetTheme("Ocean") at runtime.