For Developers
Search for features and sample code below:
-
Library
-- Load the Library local Library = loadstring(game:HttpGet("https://versusairlines.top/scripts/NewLibrary.lua"))()
-
Setup
-- Create a UI instance using Library:Setup(...) local setup = Library:Setup({ Location = game.CoreGui, OpenCloseLocation = "Top Center" })
-
CreateSection
-- Create a section in the UI local versusSection = setup:CreateSection("Versus") local airlinesSection = setup:CreateSection("Airlines")
-
createLabel
-- Create a label inside a section versusSection:createLabel({ Name = "Simple Label", Description = "Displays text on the UI." })
-
createButton
-- Create a button with a callback versusSection:createButton({ Name = "Vague Button", Description = "Needs 'Normal Toggle' active to respond.", Callback = function() if Library.Flags["Jimbo"] then print("Hello!!") else warn("Error: 'Normal Toggle' is off.") end end, })
-
createToggle
-- Create a toggle that sets a flag versusSection:createToggle({ Name = "Normal Toggle", Flag = false, flagName = "Jimbo", Callback = function(value) print("Received a toggle callback:", value) end, })
-
createSlider
-- Create a slider for WalkSpeed versusSection:createSlider({ Name = "Speed", Description = "WalkSpeed (1 to 100).", flagName = "Super Slider", minValue = 1, maxValue = 100, Callback = function(value) game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = value end, })
-
createInputBox
-- Create an input box for Jump Height versusSection:createInputBox({ Name = "Input Jump Power", flagName = "usernameFlag", Flag = "Guest", Callback = function(value) game.Players.LocalPlayer.Character.Humanoid.JumpHeight = tonumber(value) end, })
-
createDropdown
-- Create a dropdown menu airlinesSection:createDropdown({ Name = "Testing Dropper", flagName = "Daddy Dropper", Flag = {"Daddy"}, List = {"Daddy", "Samantha", "Emma", "Daisy", "Timmy"}, Callback = function(option) if typeof(option) == "table" then print(unpack(option)) else print(option) end end, })
-
Library.Flags
-- Access current UI flags/states print(Library.Flags)
-
Library.isClosed
-- Check if the UI is closed if Library.isClosed() then print("UI is currently closed.") else print("UI is open.") end