- 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"
})
printButton = UI:CreateButton({
Text = "Print",
Tab = mainTab,
Callback = function()
print("Hello, World!")
end
})
sprint = UI:CreateToggle({
Text = "Sprint: OFF",
Tab = mainTab,
Callback = function(boolean)
if boolean then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 128
sprint.Text = "Sprint: ON"
else
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
sprint.Text = "Sprint: OFF"
end
end
})
esp = UI:CreateKeybind({
Text = "ESP",
Tab = mainTab,
DefaultKeybind = Enum.KeyCode.C,
Toggle = true,
Callback = function(boolean) -- If Toggle is false, you don't need 'boolean'
if boolean then
for _, player in pairs(game.Players:GetPlayers()) do
local h = Instance.new("Highlight")
h.OutlineTransparency = 1
h.FillColor = Color3.fromRGB(13, 105, 172)
h.FillTransparency = 0.2
h.Parent = player.Character
end
else
for _, player in pairs(game.Players:GetPlayers()) do
if player.Character:FindFirstChild("Highlight") then
player.Character:FindFirstChild("Highlight"):Destroy()
end
end
end
end
})
fov = UI:CreateTextBox({
Text = "FOV",
Tab = mainTab,
PlaceholderText = "1 - 120",
Default = 70, -- Optional
Callback = function(text)
game.Workspace.CurrentCamera.FieldOfView = tonumber(text)
end
})
Note
If the player leaves TextBox blank, callback will not 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
})