Base Functions
Toggle Type
<void> api:Toggle(<string> Type)
esp:Toggle("Boxes")
aimbot:Toggle("Aimbot")
Toggles the specified Type
.
Only works on types with an Enabled
option.
Get Option Value
<variant> api:Get(<string> Type, <string> Option)
print(esp:Get("Boxes", "Color"))
print(aimbot:Get("Aimbot", "Strength"))
Returns the specified Option
's value.
Set Option Value
<void> api:Set(<string> Type, <string> Option, <variant> Value)
-- code
Sets the specified Option
's value to Value
.
Set Function
<void> api:SetFunction(<string> Function, <function> NewFunction)
esp:SetFunction("health", function(plr)
local Humanoid = plr.Character.Humanoid
return {Humanoid.Health, Humanoid.MaxHealth}
end)
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local Camera = workspace.CurrentCamera
aimbot:SetFunction("closest", function(plr)
local Mouse = UserInputService:GetMouseLocation()
local Player = nil
local Closest = math.huge
local MyTeam = Players.LocalPlayer.Team
for i,v in next, Players:GetPlayers() do -- Iterate through all the players
if v ~= Players.LocalPlayer and v.Character ~= nil then -- Check if the player is not you and if the player is alive
local Position = v.Character:GetPivot() -- GetPivot() returns the Model's position
local Vector, inViewport = Camera:WorldToViewportPoint(Position) -- Get the character's screen position
if inViewport then -- Check if the character is on-screen
local Distance = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(Vector.X, Vector.Y)).Magnitude -- Get the distance between the Mouse and the character's on-screen position
local Team = v.Team
if Mag < Closest and Team ~= MyTeam then -- Check if the distance is closer than the closest distance and if the player is on a different team
Player = v
Closest = Distance -- Now it will filter out all players who are further than this distance
end
end
end
end
return Player
end)
These are available on both Universal Esp and Aimbot! Function names are not case-sensitive.
alive
Returns a boolean indicating if the Player
is alive.
Player
Boolean
character
Returns the Player
's character.
Player
Instance (Model with ALL body parts)
team
Return's the Player
's team. This does not have to be a Team
object.
Player
Any
ffa
Returns a boolean indicating if the teams are free-for-all.
You must replace this function if you have replaced the team
function.
None
Boolean
These are only available on Universal Esp. Function names are not case-sensitive.
health
Returns the Player
's health in a table.
Player
Table Ex. {Health, MaxHealth}
teamcolor
Returns the Player
's team color.
Player
Color3
These are only available on Universal Aimbot. Function names are not case-sensitive.
closest
Returns the closest Player
.
None
Player (the actual Player object)
visible
Returns a boolean indicating is the Player
is visible.
Player
Boolean
Replaces the script's Function
with NewFunction
.
Reset Function
<void> api:ResetFunction(<string> Function)
esp:ResetFunction("health")
aimbot:ResetFunction("closest")
Resets the script's Function
to the original function.
Destroy
<void> api:Destroy(<void>)
esp:Destroy()
aimbot:Destroy()
Removes all drawing objects and stops the script.
Version
<string> api.Version
print(esp.Version)
print(aimbot.Version)
A string that specifies the script's version.
Last updated