- Getting Aero
- Creating a Window
- Creating a Tab
- Creating a Button
- Creating a Toggle
- Creating a Keybind
- Creating a TextBox
- Updating a Element
- Notifying the Player
Important
Use global variables for methods instead of local (e.g., button = UI:CreateButton
).
UI = loadstring(game:HttpGet("https://raw.githubusercontent.com/samerop/Aero/main/source.lua"))()
UI:CreateWindow({
Title = "My Window",
Key = "1234" -- Key system (Optional)
})
mainTab = UI:CreateTab({
Name = "Main"
})
Button = UI:CreateButton({
Text = "Button",
Tab = mainTab,
Callback = function()
end
})
Toggle = UI:CreateToggle({
Text = "Toggle: OFF",
Tab = mainTab,
Callback = function(boolean)
if boolean then
Toggle.Text = "Toggle: ON"
else
Toggle.Text = "Toggle: OFF"
end
end
})
Keybind = UI:CreateKeybind({
Text = "Keybind",
Tab = mainTab,
DefaultKeybind = Enum.KeyCode.C,
Toggle = true,
Callback = function(boolean) -- If Toggle is false, you don't need 'boolean'
if boolean then
else
end
end
})
TextBox = UI:CreateTextBox({
Text = "TextBox",
Tab = mainTab,
PlaceholderText = "",
Default = 10, -- Optional
Callback = function(text)
end
})
Note
If the player leaves TextBox blank, Callback won't execute unless a Default value is provided.
You can easily update an element using the variable you assigned to it. For example:
button = UI:CreateButton({
Text = "Print",
Tab = mainTab,
Callback = function()
print("Hello")
button.Text = "Successfully printed"
button.BackgroundColor3 = Color3.new(0, 1, 0)
end
})
UI:Notify({
Title = "Powered by Aero",
Text = "Welcome",
Duration = 5,
Icon = "rbxasset://textures/loading/robloxlogo.png" -- Optional
})