barsuniversal

Functions for interacting with any instances.

stance identity -> int

Gets place in memory.

instance name -> string

Gets name of the instance.

instance class_name -> string

Gets the class name of the instance.

instance get_parent() -> instance

Returns the instance parent from the instance.

instance isvalid() -> bool

Checks if the instance is in roblox or invalid.

instance isa(string) -> bool

Checks if the the instance is this type of class name.

instance find_first_descendant(string) -> instance

Returns the first descendant found with the given name.

instance find_first_descendant_of_class(string) -> instance

Returns the first descendant found with the given class name.

instance find_first_child(string) -> instance

Returns the first child of the instance found with the given name.

instance wait_for_child(string) -> instance

Returns the child instance with the specified name once it is found.

  • The function will keep waiting indefinitely if the specified child instance is never added.

instance find_first_child_class(string) -> instance

Finds the instance by the class name and returns it.

instance get_service(string) -> instance

Finds the service instance by the name and returns it.

instance get_children() -> table

Gets every instance inside the current instance.

instance get_descendants() -> table

Gets every instance that contains all of the descendants of that instance.

instance is_ancestor_of(instance) -> bool

Returns true if an instance is an ancestor of the given descendant.

instance is_descendant_of(instance) -> bool

Returns true if an instance is a descendant of the given ancestor.

instance get_attribute(string, attribute_type) -> value type

Returns the value which has been assigned to the given attribute name. If no attribute has been assigned, nil is returned.

instance set_attribute(string, attribute_type, value) -> void

Sets the attribute with the given name to the given value. Doesnt work for STRING attribute type.

instance get_attributes() -> table

Returns every attributes assigned to the instance.

Example

void add_entity(name, part, humanoid, should_aimbot, min, max) -> void

Adds instance part to the esp, aimbot, triggerbot player system.

Name
Type

name

string

part

instance

humanoid

instance -> optional

should_aimbot

bool

min

vector3

max

vector3

void add_entity_ex(name, character, humanoid, root, should_aimbot, min, max, bodyparts) -> void

Adds instance part to the esp, aimbot, triggerbot player system.

Name
Type

name

string

character

instance

humanoid

instance -> optional

root

instance

should_aimbot

bool

min

vector3

max

vector3

bodyparts

table

void force_custom_players() -> void

Disables the player caching system allowing only custom entities to be cached.

void add_custom_hitparts(bodyparts) -> void

Changes the aimbot, triggerbot, etc hitpart dropdown to the specific bodypart.

The listed functions only works in the "init_custom_entity" hook

add_custom_hitparts

force_custom_players

add_entity_ex

add_entity

Example

Last updated