API Reference
Complete documentation for WschodLib. Clean, efficient, and powerful.
Getting Started
Load Library
Script
-- Load the library
local WschodLib = loadstring(game:HttpGet("https://wschodlib.vercel.app/wschodlib.lua"))()
Window
CreateWindow
Constructor
-- Create main window
local Window = WschodLib:CreateWindow({
Name = "Wschod Hub",
AccentColor = Color3.fromRGB(0, 120, 255),
ToggleKey = Enum.KeyCode.RightControl
})
Window Management
Toggle
Method
-- Toggle UI Visibility
Window:Toggle()
SetBackgroundTransparency
Method
-- Set UI Transparency (0 - 1)
Window:SetBackgroundTransparency(0.5)
GetBackgroundTransparency
Method
-- Get current transparency
local alpha = Window:GetBackgroundTransparency()
print(alpha)
Notifications
Notify
Function
-- Send notification
WschodLib:Notify({
Title = "Success",
Content = "Configuration saved!",
Duration = 3
})
Utility
SetWatermark
Function
-- Set watermark text
WschodLib:SetWatermark("Wschod Hub | FPS: 60")
SaveConfig
System
-- Save current settings
WschodLib:SaveConfig("MyConfig")
Prompt
System
-- Show confirmation dialog
Window:Prompt({
Title = "Confirmation",
Content = "Do you want to proceed?",
Actions = {
{
Text = "Yes",
Callback = function() print("Yes") end
},
{
Text = "No",
Callback = function() print("No") end
}
}
})
Containers
CreateTab
Method
-- Create a new tab
local MainTab = Window:CreateTab("Main", {
IconUrl = "https://example.com/icon.png"
})
CreateSection
Method
-- Create a section
MainTab:CreateSection("Character Modifiers")
CreateToggle
Interactable
-- Create a toggle
MainTab:CreateToggle("Auto Farm", false, function(state)
print("Toggle:", state)
end, "AutoFarmFlag")
CreateSlider
Interactable
-- Create a slider
MainTab:CreateSlider("WalkSpeed", 16, 100, 16, function(val)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = val
end, "SpeedFlag")
CreateDropdown
Interactable
-- Create a dropdown menu
MainTab:CreateDropdown("Select Team", {"Red", "Blue"}, function(opt)
print(opt)
end, "TeamFlag")
CreateColorPicker
Interactable
-- Create a color picker
MainTab:CreateColorPicker("Accent", Color3.new(1,0,0), function(col)
print(col)
end, "ColorFlag")
CreateKeybind
Interactable
-- Create a keybind
MainTab:CreateKeybind("Fly Toggle", Enum.KeyCode.F, function()
print("Fly Toggled")
end, "FlyKey")
CreateTextbox
Interactable
-- Create a text input
MainTab:CreateTextbox("Username", "Enter name...", function(text)
print(text)
end, "UserFlag")
CreateLabel
Display
-- Create a text label
local Label = MainTab:CreateLabel("This is a label")
-- Update
Label:Set("New Text")
CreateParagraph
Display
-- Create a paragraph with title and content
local Paragraph = MainTab:CreateParagraph("Title", "Long content...")
-- Update
Paragraph:Set("New Title", "New Content")
CreateImage
Display
-- Create an image (ImageId, Size)
local Image = MainTab:CreateImage(12345678, 200)
-- Update
Image:Set(87654321)
CreateDivider
Display
-- Create a visual divider
MainTab:CreateDivider()