# Table of Contents - [LICENSE | R-ESP](#license-r-esp) - [Introduction | R-ESP](#introduction-r-esp) - [Usage | R-ESP](#usage-r-esp) - [Examples | R-ESP](#examples-r-esp) - [To Do | R-ESP](#to-do-r-esp) - [Combine Tables | R-ESP](#combine-tables-r-esp) - [Deep Copy | R-ESP](#deep-copy-r-esp) - [Is On Screen | R-ESP](#is-on-screen-r-esp) - [Get Current Camera | R-ESP](#get-current-camera-r-esp) - [Convert V3 -> V2 | R-ESP](#convert-v3-v2-r-esp) - [Set Drawing Properties | R-ESP](#set-drawing-properties-r-esp) - [Create Drawing | R-ESP](#create-drawing-r-esp) - [Calculate Corners | R-ESP](#calculate-corners-r-esp) - [Rotate Vector2 | R-ESP](#rotate-vector2-r-esp) - [BoxSquare | R-ESP](#boxsquare-r-esp) - [Destroy | R-ESP](#destroy-r-esp) - [Initialise Objects | R-ESP](#initialise-objects-r-esp) - [Update | R-ESP](#update-r-esp) - [Constructor | R-ESP](#constructor-r-esp) - [Data | R-ESP](#data-r-esp) - [Base | R-ESP](#base-r-esp) - [Properties | R-ESP](#properties-r-esp) - [Properties | R-ESP](#properties-r-esp) - [Tracer | R-ESP](#tracer-r-esp) - [Properties | R-ESP](#properties-r-esp) - [Healthbar | R-ESP](#healthbar-r-esp) - [Get Position | R-ESP](#get-position-r-esp) - [Data | R-ESP](#data-r-esp) - [Header | R-ESP](#header-r-esp) - [Properties | R-ESP](#properties-r-esp) - [Data | R-ESP](#data-r-esp) - [Data | R-ESP](#data-r-esp) - [Data | R-ESP](#data-r-esp) - [Properties | R-ESP](#properties-r-esp) - [Properties | R-ESP](#properties-r-esp) - [Box3D | R-ESP](#box3d-r-esp) - [OffArrow | R-ESP](#offarrow-r-esp) - [Data | R-ESP](#data-r-esp) - [Direction | R-ESP](#direction-r-esp) - [PlayerManager | R-ESP](#playermanager-r-esp) - [Add | R-ESP](#add-r-esp) - [Character | R-ESP](#character-r-esp) - [Constructor | R-ESP](#constructor-r-esp) - [Get | R-ESP](#get-r-esp) - [Constructor | R-ESP](#constructor-r-esp) - [Has | R-ESP](#has-r-esp) - [PlayerManagers | R-ESP](#playermanagers-r-esp) - [HeaderOffset | R-ESP](#headeroffset-r-esp) - [Render | R-ESP](#render-r-esp) - [Destroy | R-ESP](#destroy-r-esp) - [Add | R-ESP](#add-r-esp) - [InitialiseConnections | R-ESP](#initialiseconnections-r-esp) - [Constructor | R-ESP](#constructor-r-esp) - [Render | R-ESP](#render-r-esp) - [Destroy | R-ESP](#destroy-r-esp) - [InstanceObject | R-ESP](#instanceobject-r-esp) - [OnPlayerAdded | R-ESP](#onplayeradded-r-esp) - [Destroy | R-ESP](#destroy-r-esp) - [Add | R-ESP](#add-r-esp) - [Initialise | R-ESP](#initialise-r-esp) - [Name | R-ESP](#name-r-esp) - [Weapon | R-ESP](#weapon-r-esp) - [Health | R-ESP](#health-r-esp) - [Distance | R-ESP](#distance-r-esp) --- # LICENSE | R-ESP MIT License Copyright (c) 2023 Stefan Petrovic Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. [NextIntroduction](https://stefanuk12.gitbook.io/r-esp-1/home/introduction) Last updated 2 years ago This site uses cookies to deliver its service and to analyze traffic. By browsing this site, you accept the [privacy policy](https://policies.google.com/technologies/cookies) . AcceptReject --- # Introduction | R-ESP This is `R-ESP` (Roblox-ESP). A project that is heavily inspired by a pre-existing ESP library called [sense](https://github.com/shlexware/Sirius/tree/request/library/sense) . It aims to provide an intuitive, efficient, object-orientated experience. This only support Synapse V3 due to it using the new Drawing API and some functions like `getboundingbox` and `worldtoscreen`. If you wish to support me, send donations to [my PayPal](https://paypal.me/Stefanuk12) 😀 [PreviousLICENSE](https://stefanuk12.gitbook.io/r-esp-1) [NextUsage](https://stefanuk12.gitbook.io/r-esp-1/home/usage) Last updated 2 years ago --- # Usage | R-ESP [](https://stefanuk12.gitbook.io/r-esp-1/home/usage#base-class) Base Class ------------------------------------------------------------------------------- This library is designed to be very customisable and provides you a lot of power. All ESP object classes are subclasses of the [Base](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base) class. This allows you to easily make custom objects, all you have to do is copy the constrcutor and change the metatable to your own. Then, change the update method. You can use this template below, make sure to change the class name in every place. You don't need to change the constructor after that, only the update function. Copy local NewClass = {} NewClass.__index = NewClass NewClass.__type = "NewClass" setmetatable(NewClass, Base) do -- // Constructor function NewClass.new(Data, Properties) -- // Default values Data = Data or {} Properties = Properties or {} -- // Create the object local self = setmetatable({}, NewClass) -- // Vars self.Data = Utilities.CombineTables(Utilities.DeepCopy(NewClass.DefaultData), Data) self.Properties = Utilities.CombineTables(Utilities.DeepCopy(NewClass.DefaultProperties), Properties) -- // Make the object(s) self.Objects = self:InitialiseObjects(self.Data, self.Properties) -- // Return the object return self end -- // Updates the properties function NewClass:Update(Corners) -- // Check for visibility local Data = self.Data local Properties = Utilities.DeepCopy(self.Properties) local IsVisible = Data.Enabled local OutlineVisible = IsVisible and Data.OutlineEnabled -- // Set the properties Utilities.SetDrawingProperties(self.Objects.Main, Utilities.CombineTables(Properties.Main, { Outlined = OutlineVisible, Visible = IsVisible })) end end [](https://stefanuk12.gitbook.io/r-esp-1/home/usage#changing-data) Changing data ------------------------------------------------------------------------------------- Some classes have special data that you can change. For example, [Headers](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header) have [custom types](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/data#headertype) . When initialising the object, the first argument is a table with all of the custom data. The tables are merged so no need to copy and paste every single property from the defaults Copy local HeaderObject = Header.new({ Type = "Distance" Value = 0 }) [](https://stefanuk12.gitbook.io/r-esp-1/home/usage#changing-properties) Changing properties ------------------------------------------------------------------------------------------------- Similiarly to [changing data](https://stefanuk12.gitbook.io/r-esp-1/home/usage#changing-data) , you can change individual object properties. Certain properties like `Size` are omitted from `Data` as they are here instead. These properties reflect the properties of the DrawEntry connected to it. Do not pass properties that are not properties of the `DrawEntry` otherwise it will error. For example, if the `Type` is `TextDynamic`, do not pass a property like `Value` as it's not a valid property of `TextDynamic`. Copy local HeaderObject = Header.new(nil, { Main = { Size = 15 } }) [](https://stefanuk12.gitbook.io/r-esp-1/home/usage#rendering) Rendering ----------------------------------------------------------------------------- By default, there are `Managers` which help you with updating and rendering the objects. For more information, please go to their respected page. Essentially, these managers allow you to pass an object, be it a `Player` or a `Model`, and it will automatically update the position, visibility, etc based upon the [Update](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/update) function of the ESP objects connected to it. [](https://stefanuk12.gitbook.io/r-esp-1/home/usage#globals) Globals ------------------------------------------------------------------------- When loading the library, some globals will be set in `getgenv()`. Mainly `RESP_BASE` when loading `Base.lua` and `RESP_MANAGER` when loading `Manager.lua`. If you want to see what they include, simply scroll to the bottom the script. [PreviousIntroduction](https://stefanuk12.gitbook.io/r-esp-1/home/introduction) [NextExamples](https://stefanuk12.gitbook.io/r-esp-1/home/examples) Last updated 2 years ago --- # Examples | R-ESP All examples can be found [here](https://github.com/Stefanuk12/R-ESP/tree/master/Examples) . [PreviousUsage](https://stefanuk12.gitbook.io/r-esp-1/home/usage) [NextTo Do](https://stefanuk12.gitbook.io/r-esp-1/home/to-do) Last updated 2 years ago --- # To Do | R-ESP * Have the ability to automatically add objects based upon defaults, etc. * Example [PreviousExamples](https://stefanuk12.gitbook.io/r-esp-1/home/examples) [NextGet Current Camera](https://stefanuk12.gitbook.io/r-esp-1/utilities/get-current-camera) Last updated 2 years ago --- # Combine Tables | R-ESP Merges the `ToAdd` table onto the `Base` table. The `Base` table will get modified, if you do not want it to be affected, use the [DeepCopy](https://stefanuk12.gitbook.io/r-esp-1/utilities/deep-copy) function. [](https://stefanuk12.gitbook.io/r-esp-1/utilities/combine-tables#parameters) Parameters --------------------------------------------------------------------------------------------- Name Description Type Default Optional Base The table to merge onto table `{}` ToAdd The table to merge from table `{}` [](https://stefanuk12.gitbook.io/r-esp-1/utilities/combine-tables#return) Return ------------------------------------------------------------------------------------- ` the merged table` [PreviousIs On Screen](https://stefanuk12.gitbook.io/r-esp-1/utilities/is-on-screen) [NextDeep Copy](https://stefanuk12.gitbook.io/r-esp-1/utilities/deep-copy) Last updated 2 years ago --- # Deep Copy | R-ESP Deep copies the `Original` table which copies nested tables too. [](https://stefanuk12.gitbook.io/r-esp-1/utilities/deep-copy#parameters) Parameters ---------------------------------------------------------------------------------------- Name Description Type Default Optional Original The table to copy table N/A [](https://stefanuk12.gitbook.io/r-esp-1/utilities/deep-copy#return) Return -------------------------------------------------------------------------------- `
the copied table` [PreviousCombine Tables](https://stefanuk12.gitbook.io/r-esp-1/utilities/combine-tables) [NextConvert V3 -> V2](https://stefanuk12.gitbook.io/r-esp-1/utilities/convert-v3-greater-than-v2) Last updated 2 years ago --- # Is On Screen | R-ESP Checks whether a point is within the [Current Camera](https://stefanuk12.gitbook.io/r-esp-1/utilities/get-current-camera) 's Viewport. [](https://stefanuk12.gitbook.io/r-esp-1/utilities/is-on-screen#parameters) Parameters ------------------------------------------------------------------------------------------- Name Description Type Default Optional Point The point to check Vector2 N/A [](https://stefanuk12.gitbook.io/r-esp-1/utilities/is-on-screen#return) Return ----------------------------------------------------------------------------------- ` is on screen` [PreviousGet Current Camera](https://stefanuk12.gitbook.io/r-esp-1/utilities/get-current-camera) [NextCombine Tables](https://stefanuk12.gitbook.io/r-esp-1/utilities/combine-tables) Last updated 2 years ago --- # Get Current Camera | R-ESP Returns the CurrentCamera. This is a function to add extra customisation in games where this is needed. [](https://stefanuk12.gitbook.io/r-esp-1/utilities/get-current-camera#parameters) Parameters ------------------------------------------------------------------------------------------------- Name Description Type Default Optional N/A N/A N/A N/A [](https://stefanuk12.gitbook.io/r-esp-1/utilities/get-current-camera#return) Return ----------------------------------------------------------------------------------------- ` Current Camera` [PreviousTo Do](https://stefanuk12.gitbook.io/r-esp-1/home/to-do) [NextIs On Screen](https://stefanuk12.gitbook.io/r-esp-1/utilities/is-on-screen) Last updated 2 years ago --- # Convert V3 -> V2 | R-ESP Converts `Vector3`s to `Vector2` by ignoring the `Z` axis of the `Vector`. [](https://stefanuk12.gitbook.io/r-esp-1/utilities/convert-v3-greater-than-v2#parameters) Parameters --------------------------------------------------------------------------------------------------------- Name Description Type Default Optional Vector The vectors to convert Vector3 | table N/A [](https://stefanuk12.gitbook.io/r-esp-1/utilities/convert-v3-greater-than-v2#return) Return ------------------------------------------------------------------------------------------------- `> the converted vector(s)` [PreviousDeep Copy](https://stefanuk12.gitbook.io/r-esp-1/utilities/deep-copy) [NextCalculate Corners](https://stefanuk12.gitbook.io/r-esp-1/utilities/calculate-corners) Last updated 2 years ago --- # Set Drawing Properties | R-ESP Sets the properties of a drawing object. [](https://stefanuk12.gitbook.io/r-esp-1/utilities/set-drawing-properties#parameters) Parameters ----------------------------------------------------------------------------------------------------- Name Description Type Default Optional Object The drawing object DrawEntryDynamic N/A Properties The properties to apply table N/A [](https://stefanuk12.gitbook.io/r-esp-1/utilities/set-drawing-properties#return) Return --------------------------------------------------------------------------------------------- ` the object with the properties applied` [PreviousRotate Vector2](https://stefanuk12.gitbook.io/r-esp-1/utilities/rotate-vector2) [NextCreate Drawing](https://stefanuk12.gitbook.io/r-esp-1/utilities/create-drawing) Last updated 2 years ago --- # Create Drawing | R-ESP Creates a new drawing object and automatically sets the properties of a drawing object. Make sure to add a `Type` property inside the `Properties` table to specify the type of Drawing object to create. [](https://stefanuk12.gitbook.io/r-esp-1/utilities/create-drawing#parameters) Parameters --------------------------------------------------------------------------------------------- Name Description Type Default Optional Properties The properties to apply to the object table N/A [](https://stefanuk12.gitbook.io/r-esp-1/utilities/create-drawing#return) Return ------------------------------------------------------------------------------------- ` the object with the properties applied` [PreviousSet Drawing Properties](https://stefanuk12.gitbook.io/r-esp-1/utilities/set-drawing-properties) [NextBase](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base) Last updated 2 years ago --- # Calculate Corners | R-ESP Calculate the bounding box corners of a part. [](https://stefanuk12.gitbook.io/r-esp-1/utilities/calculate-corners#parameters) Parameters ------------------------------------------------------------------------------------------------ Name Description Type Default Optional PartCFrame The CFrame of the bounding box CFrame N/A PartSize The size of the bounding box Vector3 N/A [](https://stefanuk12.gitbook.io/r-esp-1/utilities/calculate-corners#return) Return ---------------------------------------------------------------------------------------- Name Description Type Default Optional Corners All of the on-screen corner points table N/A Centre3D The centre of the bounding box Vector3 N/A Centre The on-screen centre of the bounding box Vector2 N/A TopLeft The top-left on-screen corner Vector2 N/A TopRight The top-right on-scren corner Vector2 N/A BottomLeft The bottom-left on-screen corner Vector2 N/A BottomRight The bottom-right on-screen corner Vector2 N/A [PreviousConvert V3 -> V2](https://stefanuk12.gitbook.io/r-esp-1/utilities/convert-v3-greater-than-v2) [NextRotate Vector2](https://stefanuk12.gitbook.io/r-esp-1/utilities/rotate-vector2) Last updated 2 years ago --- # Rotate Vector2 | R-ESP Converts the `Vector` by an `Angle` in radians. [](https://stefanuk12.gitbook.io/r-esp-1/utilities/rotate-vector2#parameters) Parameters --------------------------------------------------------------------------------------------- Name Description Type Default Optional Vector The vector to rotate Vector2 N/A Angle The angle in radians to rotate by number N/A [](https://stefanuk12.gitbook.io/r-esp-1/utilities/rotate-vector2#return) Return ------------------------------------------------------------------------------------- ` the rotated vector` [PreviousCalculate Corners](https://stefanuk12.gitbook.io/r-esp-1/utilities/calculate-corners) [NextSet Drawing Properties](https://stefanuk12.gitbook.io/r-esp-1/utilities/set-drawing-properties) Last updated 2 years ago --- # BoxSquare | R-ESP [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/boxsquare#showcase) Showcase --------------------------------------------------------------------------------------------- ![](https://stefanuk12.gitbook.io/r-esp-1/~gitbook/image?url=https%3A%2F%2F3923933237-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsEcIQY6SostWG3Riwcix%252Fuploads%252F7b7EJj9lkECP7Cy0A3Hw%252Fimage_2023-03-20_204032372.png%3Falt%3Dmedia%26token%3D3f9ae4fd-f007-4694-9584-c20a5bbadc09&width=768&dpr=4&quality=100&sign=84152959&sv=2) [PreviousUpdate](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/update) [NextData](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/boxsquare/data) Last updated 2 years ago --- # Destroy | R-ESP Destroys and removes each instance of a class (usually of [Base](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base) ) in the `TableObject`. [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/destroy#parameters) Parameters ---------------------------------------------------------------------------------------------------- Name Description Type Default Optional TableObject A table with all of the objects table N/A [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/destroy#return) Return -------------------------------------------------------------------------------------------- `` [PreviousInitialise Objects](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/initialise-objects) [NextUpdate](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/update) Last updated 2 years ago --- # Initialise Objects | R-ESP This initialises all of the Drawing objects based upon the `Properties` table. Follow this format for each entry in the `Properties` parameter `[Key] = [Properties of object]` Make sure to specify the `Type` in the `Properties of object` [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/initialise-objects#parameters) Parameters --------------------------------------------------------------------------------------------------------------- Name Description Type Default Optional Data Special data properties table N/A Properties The properties to apply table N/A [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/initialise-objects#return) Return ------------------------------------------------------------------------------------------------------- `
the objects with the properties applied` [PreviousConstructor](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/constructor) [NextDestroy](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/destroy) Last updated 2 years ago --- # Update | R-ESP Updates all of the objects and their properties. [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/update#parameters) Parameters --------------------------------------------------------------------------------------------------- Name Description Type Default Optional Corners Return value of [Calculate Corners](https://stefanuk12.gitbook.io/r-esp-1/utilities/calculate-corners) table N/A [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/update#return) Return ------------------------------------------------------------------------------------------- `` [PreviousDestroy](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/destroy) [NextBoxSquare](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/boxsquare) Last updated 2 years ago --- # Constructor | R-ESP Initialises the [Base](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base) class. For the `Data` parameter, options for what you could put will be said. For the `Properties` parameter, make sure to follow what was said in [Initialise Objects](https://stefanuk12.gitbook.io/r-esp-1/utilities/combine-tables) [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/constructor#parameters) Parameters -------------------------------------------------------------------------------------------------------- Name Description Type Default Optional Data Special data properties table N/A Properties The properties to apply table N/A [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/constructor#return) Return ------------------------------------------------------------------------------------------------ ` initialised class` [PreviousBase](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base) [NextInitialise Objects](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/initialise-objects) Last updated 2 years ago --- # Data | R-ESP [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/boxsquare/data#parameters) Parameters ------------------------------------------------------------------------------------------------------ Name Description Type Default Optional Enabled Toggle the entire instance boolean N/A OutlineEnabled Toggle the outline boolean N/A [PreviousBoxSquare](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/boxsquare) [NextProperties](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/boxsquare/properties) Last updated 2 years ago --- # Base | R-ESP Do not initialise this class. It is used in order to inherit some key functions in order to reduce boilerplate code. If using as intended, make sure to clone the constructor and update method - then change accordingly. [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base#showcase) Showcase ---------------------------------------------------------------------------------------- ![](https://stefanuk12.gitbook.io/r-esp-1/~gitbook/image?url=https%3A%2F%2F3923933237-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsEcIQY6SostWG3Riwcix%252Fuploads%252FDAYqhhtAnr3mF1RCjs8P%252Fimage_2023-03-20_204838717.png%3Falt%3Dmedia%26token%3Dc5a090f2-b234-4468-8152-cf2cb6a1a125&width=768&dpr=4&quality=100&sign=e847e1fe&sv=2) Each ESP Object Class at once on a player [PreviousCreate Drawing](https://stefanuk12.gitbook.io/r-esp-1/utilities/create-drawing) [NextConstructor](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/constructor) Last updated 2 years ago --- # Properties | R-ESP Name Description Type Main The main object, uses `RectDynamic` table [PreviousData](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/boxsquare/data) [NextTracer](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/tracer) Last updated 2 years ago --- # Properties | R-ESP Name Description Type Main The main object, uses `LineDynamic` table [PreviousData](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/tracer/data) [NextHeader](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header) Last updated 2 years ago --- # Tracer | R-ESP [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/tracer#showcase) Showcase ------------------------------------------------------------------------------------------ ![](https://stefanuk12.gitbook.io/r-esp-1/~gitbook/image?url=https%3A%2F%2F3923933237-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsEcIQY6SostWG3Riwcix%252Fuploads%252FDjB2tvlCFIzZYPLK3aaD%252Fimage_2023-03-20_204233531.png%3Falt%3Dmedia%26token%3Dc3de9791-2ef3-46d3-b5ed-202084f4dc0b&width=768&dpr=4&quality=100&sign=cd1c90fe&sv=2) [PreviousProperties](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/boxsquare/properties) [NextData](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/tracer/data) Last updated 2 years ago --- # Properties | R-ESP Name Description Type Main The main object, uses `TextDynamic` table [PreviousData](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/data) [NextGet Position](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/get-position) Last updated 2 years ago --- # Healthbar | R-ESP [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/healthbar#showcase) Showcase --------------------------------------------------------------------------------------------- ![](https://stefanuk12.gitbook.io/r-esp-1/~gitbook/image?url=https%3A%2F%2F3923933237-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsEcIQY6SostWG3Riwcix%252Fuploads%252F1sfldBcoSRPTIsyBCDaR%252Fimage_2023-03-20_204539127.png%3Falt%3Dmedia%26token%3D85a9ab38-655e-45b6-98cc-b5d477297bfd&width=768&dpr=4&quality=100&sign=434a8f13&sv=2) [PreviousGet Position](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/get-position) [NextData](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/healthbar/data) Last updated 2 years ago --- # Get Position | R-ESP Calculates where the position of the [Header](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header) should be based on the offset and it's [Type](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/data#headertype) . [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/get-position#parameters) Parameters ----------------------------------------------------------------------------------------------------------- Name Description Type Default Optional Corners Return value of [Calculate Corners](https://stefanuk12.gitbook.io/r-esp-1/utilities/calculate-corners) table N/A [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/get-position#return) Return --------------------------------------------------------------------------------------------------- ` the position to set as` [PreviousProperties](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/properties) [NextHealthbar](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/healthbar) Last updated 2 years ago --- # Data | R-ESP [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/tracer/data#parameters) Parameters --------------------------------------------------------------------------------------------------- Name Description Type Default Optional Enabled Toggle the entire instance boolean N/A OutlineEnabled Toggle the outline boolean N/A TracerOrigin Where the tracer comes from [TracerOrigin](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/tracer/data#tracerorigin) Bottom [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/tracer/data#tracerorigin) TracerOrigin ------------------------------------------------------------------------------------------------------- Name Description Type Top Top-centre of the screen string Middle Centre of the screen string Bottom Bottom-centre of the screen string [PreviousTracer](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/tracer) [NextProperties](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/tracer/properties) Last updated 2 years ago --- # Header | R-ESP [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header#showcase) Showcase ------------------------------------------------------------------------------------------ ![](https://stefanuk12.gitbook.io/r-esp-1/~gitbook/image?url=https%3A%2F%2F3923933237-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsEcIQY6SostWG3Riwcix%252Fuploads%252Fb4thGxYWEHcxVzMUOZwG%252Fimage_2023-03-20_204403723.png%3Falt%3Dmedia%26token%3D9b26da1f-ad81-4587-986e-8113b12ada42&width=768&dpr=4&quality=100&sign=9811757&sv=2) `Name`, `Distance`, and `Weapon` headers [PreviousProperties](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/tracer/properties) [NextData](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/data) Last updated 2 years ago --- # Properties | R-ESP Name Description Type Main The main object, uses `LineDynamic` table Text The text that displays health value, uses `TextDynamic` table [PreviousData](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/healthbar/data) [NextOffArrow](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/offarrow) Last updated 2 years ago --- # Data | R-ESP [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/healthbar/data#parameters) Parameters ------------------------------------------------------------------------------------------------------ Name Description Type Default Optional Enabled Toggle the entire instance boolean N/A OutlineEnabled Toggle the outline boolean N/A Value The current health of the object number 0 MaxValue The maximum health of the object number 100 MinColour The colour indicating no health Color3 `255, 0, 0` MaxColour The colour indicating max health Color3 `0, 255, 0` Offset Additional offset Vector2 `0, 0` TextOffset Offset for the `Text` Vector2 `5, 0` WidthOffset Offset based upon a % of the box width number 5 [PreviousHealthbar](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/healthbar) [NextProperties](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/healthbar/properties) Last updated 2 years ago --- # Data | R-ESP [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/data#parameters) Parameters --------------------------------------------------------------------------------------------------- Name Description Type Default Optional Enabled Toggle the entire instance boolean N/A OutlineEnabled Toggle the outline boolean N/A Type The type of header [HeaderType](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/data#headertype) Name Value The value to display string, number N/A Formats The string formats for each [Type](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/data#headertype) [HeaderFormat](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/data#headerformat) N/A Offset Additional offset Vector2 `0, 0` [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/data#headertype) HeaderType --------------------------------------------------------------------------------------------------- Name Description Type Name Displays the name of the object string Distance Displays the distance from the object string Weapon Displays the object's weapon string [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/data#headerformat) HeaderFormat ------------------------------------------------------------------------------------------------------- Name Default Type Name `%s` string Weapon `%s` string Distance `%0.1f studs` string [PreviousHeader](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header) [NextProperties](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/properties) Last updated 2 years ago --- # Data | R-ESP [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/box3d/data#parameters) Parameters -------------------------------------------------------------------------------------------------- Name Description Type Default Optional Enabled Toggle the entire instance boolean N/A OutlineEnabled Toggle the outline boolean N/A [PreviousBox3D](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/box3d) [NextProperties](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/box3d/properties) Last updated 2 years ago --- # Properties | R-ESP Name Description Type 1 One of the faces uses `PolyLineDynamic` table 2 One of the faces uses `PolyLineDynamic` table 3 One of the faces uses `PolyLineDynamic` table 4 One of the faces uses `PolyLineDynamic` table [PreviousData](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/box3d/data) [NextInstanceObject](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject) Last updated 2 years ago --- # Properties | R-ESP Name Description Type Main The main object, uses `PolyLineDynamic` table [PreviousData](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/offarrow/data) [NextDirection](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/offarrow/direction) Last updated 2 years ago --- # Box3D | R-ESP [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/box3d#showcase) Showcase ----------------------------------------------------------------------------------------- ![](https://stefanuk12.gitbook.io/r-esp-1/~gitbook/image?url=https%3A%2F%2F3923933237-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsEcIQY6SostWG3Riwcix%252Fuploads%252FHkeHlidEzSPale0mZ0LU%252Fimage_2023-03-20_204639462.png%3Falt%3Dmedia%26token%3D6eab96de-b2ba-4749-b423-00da174a7938&width=768&dpr=4&quality=100&sign=54aa2c63&sv=2) [PreviousDirection](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/offarrow/direction) [NextData](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/box3d/data) Last updated 2 years ago --- # OffArrow | R-ESP [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/offarrow#showcase) Showcase -------------------------------------------------------------------------------------------- ![](https://stefanuk12.gitbook.io/r-esp-1/~gitbook/image?url=https%3A%2F%2F3923933237-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsEcIQY6SostWG3Riwcix%252Fuploads%252FJmVxL8qwxZkXuyW0aMh8%252Fimage_2023-03-20_205748247.png%3Falt%3Dmedia%26token%3Db77617ab-9e01-496c-9759-e9581c6c5475&width=768&dpr=4&quality=100&sign=718d85c&sv=2) [PreviousProperties](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/healthbar/properties) [NextData](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/offarrow/data) Last updated 2 years ago --- # Data | R-ESP [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/offarrow/data#parameters) Parameters ----------------------------------------------------------------------------------------------------- Name Description Type Default Optional Enabled Toggle the entire instance boolean N/A OutlineEnabled Toggle the outline boolean N/A Radius How far the arrows are from the centre number 150 Size The size of the arrows number 15 Offset Additional offset Vector2 `0, 0` [PreviousOffArrow](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/offarrow) [NextProperties](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/offarrow/properties) Last updated 2 years ago --- # Direction | R-ESP Calculates the direction of where the arrow should point to. [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/offarrow/direction#parameters) Parameters ---------------------------------------------------------------------------------------------------------- Name Description Type Default Optional Destination The target position Vector3 N/A Origin Where the arrow is "from" Vector3 [CurrentCamera](https://stefanuk12.gitbook.io/r-esp-1/utilities/get-current-camera) .CFrame [](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/offarrow/direction#return) Return -------------------------------------------------------------------------------------------------- ` direction` [PreviousProperties](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/offarrow/properties) [NextBox3D](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/box3d) Last updated 2 years ago --- # PlayerManager | R-ESP [Constructor](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/constructor) [Character](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/character) [Add](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/add) [Render](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/render) [Destroy](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/destroy) [PreviousDistance](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/distance) [NextConstructor](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/constructor) Last updated 2 years ago --- # Add | R-ESP This method is a redirect of [Add](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/add) . [PreviousCharacter](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/character) [NextRender](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/render) Last updated 2 years ago --- # Character | R-ESP Returns the Character of the object's Player. [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/character#parameters) Parameters ----------------------------------------------------------------------------------------------------- Name Description Type Default Optional N/A N/A N/A N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/character#return) Return --------------------------------------------------------------------------------------------- ` the object's Player` [PreviousConstructor](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/constructor) [NextAdd](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/add) Last updated 2 years ago --- # Constructor | R-ESP Initialises the [PlayerManager](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager) class. [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/constructor#parameters) Parameters ------------------------------------------------------------------------------------------------------- Name Description Type Default Optional Player The player Player N/A NoInsert Does not add the constructed object to `InstanceObjects` table boolean false [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/constructor#return) Return ----------------------------------------------------------------------------------------------- ` initialised class` [PreviousPlayerManager](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager) [NextCharacter](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/character) Last updated 2 years ago --- # Get | R-ESP Gets all of [InstanceObject](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject) s in the `InstanceObjects` table that fits both `Type` and `SubType`. [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/get#parameters) Parameters ------------------------------------------------------------------------------------------------ Name Description Type Default Optional Type The type to search for string N/A SubType A subtype to also search for string N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/get#return) Return ---------------------------------------------------------------------------------------- `> all objects that fit the criteria` [PreviousConstructor](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/constructor) [NextHas](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/has) Last updated 2 years ago --- # Constructor | R-ESP Initialises the [InstanceObject](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject) class. [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/constructor#parameters) Parameters -------------------------------------------------------------------------------------------------------- Name Description Type Default Optional Object The object BasePart | Model N/A NoInsert Does not add the constructed object to `InstanceObjects` table boolean false [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/constructor#return) Return ------------------------------------------------------------------------------------------------ ` initialised class` [PreviousInstanceObject](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject) [NextGet](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/get) Last updated 2 years ago --- # Has | R-ESP This uses [Get](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/get) to check if the [InstanceObject](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject) has an ESP object with `Type` of `SubType`. [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/has#parameters) Parameters ------------------------------------------------------------------------------------------------ Name Description Type Default Optional Type The type to search for string N/A SubType A subtype to also search for string N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/has#return) Return ---------------------------------------------------------------------------------------- ` if has` [PreviousGet](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/get) [NextAdd](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/add) Last updated 2 years ago --- # PlayerManagers | R-ESP This class is designed to make it easy to manage many players at once using the PlayerManager class [PreviousDestroy](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/destroy) [NextConstructor](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/constructor) Last updated 2 years ago --- # HeaderOffset | R-ESP Returns a dynamic offset for [Header](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header) s. [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/headeroffset#parameters) Parameters --------------------------------------------------------------------------------------------------------- Name Description Type Default Optional HeaderObject The header instance Header N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/headeroffset#return) Return ------------------------------------------------------------------------------------------------- ` the offset` [PreviousDestroy](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/destroy) [NextName](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/name) Last updated 2 years ago --- # Render | R-ESP Uses [Character](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/character) to set the character then uses [Render](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/render) . [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/render#parameters) Parameters -------------------------------------------------------------------------------------------------- Name Description Type Default Optional N/A N/A N/A N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/render#return) Return ------------------------------------------------------------------------------------------ `` [PreviousAdd](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/add) [NextDestroy](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/destroy) Last updated 2 years ago --- # Destroy | R-ESP Destroys the [InstanceObject](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject) via its [Destroy](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/destroy) method, if the object is present. [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/destroy#parameters) Parameters --------------------------------------------------------------------------------------------------- Name Description Type Default Optional N/A N/A N/A N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/destroy#return) Return ------------------------------------------------------------------------------------------- `` [PreviousRender](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager/render) [NextPlayerManagers](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers) Last updated 2 years ago --- # Add | R-ESP This method is a redirect of [Add](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/add) . Returns a table of all of the return values [PreviousConstructor](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/constructor) [NextOnPlayerAdded](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/onplayeradded) Last updated 2 years ago --- # InitialiseConnections | R-ESP Creates the `PlayerAddedConnection` via [Players.PlayerAdded](https://create.roblox.com/docs/reference/engine/classes/Players#PlayerAdded) , which then calls [OnPlayerAdded](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/onplayeradded) . [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/initialiseconnections#parameters) Parameters ------------------------------------------------------------------------------------------------------------------ Name Description Type Default Optional N/A N/A N/A N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/initialiseconnections#return) Return ---------------------------------------------------------------------------------------------------------- `` [PreviousDestroy](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/destroy) [NextInitialise](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/initialise) Last updated 2 years ago --- # Constructor | R-ESP Initialises the [PlayerManagers](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers) class. [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/constructor#parameters) Parameters -------------------------------------------------------------------------------------------------------- Name Description Type Default Optional N/A N/A N/A N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/constructor#return) Return ------------------------------------------------------------------------------------------------ ` initialised class` [PreviousPlayerManagers](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers) [NextAdd](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/add) Last updated 2 years ago --- # Render | R-ESP This goes through each [Object](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base) and updates their `Data`. It also calculates the corners then calls the object's [Update](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/update) function. [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/render#parameters) Parameters --------------------------------------------------------------------------------------------------- Name Description Type Default Optional N/A N/A N/A N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/render#return) Return ------------------------------------------------------------------------------------------- `` [PreviousAdd](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/add) [NextDestroy](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/destroy) Last updated 2 years ago --- # Destroy | R-ESP This goes through each [Object](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base) and destroys each one, by using the [Destroy](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/destroy) method, then removing it from `Objects`. [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/destroy#parameters) Parameters ---------------------------------------------------------------------------------------------------- Name Description Type Default Optional N/A N/A N/A N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/destroy#return) Return -------------------------------------------------------------------------------------------- `` [PreviousRender](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/render) [NextHeaderOffset](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/headeroffset) Last updated 2 years ago --- # InstanceObject | R-ESP This class helps you manage `BasePart`s and `Model`s. [PreviousProperties](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/box3d/properties) [NextConstructor](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/constructor) Last updated 2 years ago --- # OnPlayerAdded | R-ESP Called whenever [Players.PlayerAdded](https://create.roblox.com/docs/reference/engine/classes/Players#PlayerAdded) is fired. Creates a new [PlayerManager](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager) and adds it to `Managers`. [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/onplayeradded#parameters) Parameters ---------------------------------------------------------------------------------------------------------- Name Description Type Default Optional Player The new player Player N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/onplayeradded#return) Return -------------------------------------------------------------------------------------------------- `` [PreviousAdd](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/add) [NextDestroy](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/destroy) Last updated 2 years ago --- # Destroy | R-ESP Destroys the `PlayerAddedConnection`, if it exists and each [PlayerManager](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager) . Then, it is removed from the `Managers` [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/destroy#parameters) Parameters ---------------------------------------------------------------------------------------------------- Name Description Type Default Optional N/A N/A N/A N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/destroy#return) Return -------------------------------------------------------------------------------------------- `` [PreviousOnPlayerAdded](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/onplayeradded) [NextInitialiseConnections](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/initialiseconnections) Last updated 2 years ago --- # Add | R-ESP Attempts to initialise a [base ESP object](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base) of `Type` with `Data` and `Properties`. Uses [Base.new](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/base/constructor) to initialise the object. Do not add many objects of same `Type` and `SubType`. It will error otherwise. [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/add#parameters) Parameters ------------------------------------------------------------------------------------------------ Name Description Type Default Optional Type The type to search for string N/A Data Special data properties table N/A Properties The properties to use for the objects table N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/add#return) Return ---------------------------------------------------------------------------------------- ` the created object` [PreviousHas](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/has) [NextRender](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/render) Last updated 2 years ago --- # Initialise | R-ESP Destroys any previous initialisations, then fires [OnPlayerAdded](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/onplayeradded) for each [Player](https://create.roblox.com/docs/reference/engine/classes/Player) , except [LocalPlayer](https://create.roblox.com/docs/reference/engine/classes/Players#LocalPlayer) . Then calls [InitialiseConnections](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/initialiseconnections) . [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/initialise#parameters) Parameters ------------------------------------------------------------------------------------------------------- Name Description Type Default Optional N/A N/A N/A N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/initialise#return) Return ----------------------------------------------------------------------------------------------- `` [PreviousInitialiseConnections](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanagers/initialiseconnections) Last updated 2 years ago --- # Name | R-ESP Mainly used for the [Header](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header) 's Value when its [SubType](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/data#headertype) is set to `Name`. It returns the name of the object. [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/name#parameters) Parameters ------------------------------------------------------------------------------------------------- Name Description Type Default Optional N/A N/A N/A N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/name#return) Return ----------------------------------------------------------------------------------------- ` the name of the object` [PreviousHeaderOffset](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/headeroffset) [NextWeapon](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/weapon) Last updated 2 years ago --- # Weapon | R-ESP Mainly used for the [Header](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header) 's Value when its [SubType](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/data#headertype) is set to `Weapon`. It returns the current weapon that the object is holding. [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/weapon#parameters) Parameters --------------------------------------------------------------------------------------------------- Name Description Type Default Optional N/A N/A N/A N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/weapon#return) Return ------------------------------------------------------------------------------------------- ` the name of the weapon` [PreviousName](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/name) [NextHealth](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/health) Last updated 2 years ago --- # Health | R-ESP Mainly used for the [Header](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header) 's Value when its [SubType](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/data#headertype) is set to Health, and for the [Healthbar](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/healthbar) . It returns the health and max health of the object. [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/health#parameters) Parameters --------------------------------------------------------------------------------------------------- Name Description Type Default Optional N/A N/A N/A N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/health#return) Return ------------------------------------------------------------------------------------------- ` the object's Health, MaxHealth` [PreviousWeapon](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/weapon) [NextDistance](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/distance) Last updated 2 years ago --- # Distance | R-ESP Mainly used for the [Header](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header) 's Value when its [SubType](https://stefanuk12.gitbook.io/r-esp-1/esp-object-classes/header/data#headertype) is set to Distance. It returns the distance from the object. [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/distance#parameters) Parameters ----------------------------------------------------------------------------------------------------- Name Description Type Default Optional N/A N/A N/A N/A [](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/distance#return) Return --------------------------------------------------------------------------------------------- ` the distance from object` [PreviousHealth](https://stefanuk12.gitbook.io/r-esp-1/managers/instanceobject/health) [NextPlayerManager](https://stefanuk12.gitbook.io/r-esp-1/managers/playermanager) Last updated 2 years ago ---