Important
Avoid assigning methods to variables directly (e.g., local button = UI:CreateButton
).
- Getting Aero
- Creating a Window
- Creating a Tab
- Creating a Button
- Updating a Button
- Creating a Toggle
- Creating a Keybind
- Creating a TextBox
- Notifying the Player
- Miscellaneous
UI = loadstring(game:HttpGet("https://raw.githubusercontent.com/samerop/Aero/main/source.lua"))()
UI:CreateWindow({
Title = "My Window", -- Title displayed at the top of the window
Draggable = true -- Should the window be draggable?
})
UI:CreateTab({
Name = "Main"
})
UI:CreateButton({
Text = "Print", -- Text for the button
Tab = "Main", -- Tab where the button will be located
Callback = function()
print("Hello, World!")
end
})
Note
The Text
of the button will also be the name of the button.
UI:UpdateButton({
Button = "Print", -- Name of the button
Tab = "Main", -- Name of the tab where the button is located
Text = "Printed!" -- New text for the button
})
UI:CreateToggle({
Text = "Sprint: OFF",
Tab = "Main",
Callback = function(boolean) -- Initial state of 'boolean' is true
if boolean then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
else
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
end
end,
TrueText = "Sprint: ON",
FalseText = "Sprint: OFF"
})
UI:CreateKeybind({
Text = "Sprint",
Tab = "Main",
DefaultKeybind = Enum.KeyCode.E,
Toggle = true,
Callback = function(boolean)
if boolean then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
else
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
end
end
})
UI:CreateKeybind({
Text = "Print",
Tab = "Main",
DefaultKeybind = Enum.KeyCode.E,
Toggle = false,
Callback = function()
print("Key pressed!")
end
})
UI:CreateTextBox({
Text = "Walk Speed",
Tab = "Main",
PlaceholderText = "Value",
Default = 16, -- Value if player leaves TextBox blank (Optional)
Callback = function(text)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(text)
end
})
Note
If there is no Default
and the player leaves TextBox blank, it will return and Callback
won't execute.
UI:Notify({
Title = "Powered by Aero",
Text = "Welcome",
Duration = 5,
Icon = "rbxasset://textures/loading/robloxlogo.png" -- Optional
})
Note
rbxassetid://
(user-uploaded assets, requires the asset's ID)rbxasset://
(built-in Roblox content:%localappdata%\Roblox\Versions\<version>\content
)
- Click the gear icon in the top-right corner to open settings
- Toggle Aero: Toggle the visibility of Aero (configurable,
LeftControl
is default) - Destroy Aero: Destroy the Aero UI
- Click the button next to settings to minimize and maximize Aero