> ## Documentation Index
> Fetch the complete documentation index at: https://eco-804c21df.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Instance Functions

> Functions related to instance.

### Get Instances

```lua theme={null}
getinstances() : {Instances} <table>
```

<Info>
  getinstances, get\_instances
</Info>

Returns a table containing all instances in the game.

### Get Nil Instances

```lua theme={null}
getnilinstances() : {NilInstances} <table>
```

<Info>
  getnilinstances, get\_nil\_instances, getnils
</Info>

Returns a table containing instances with the `Parent` property set to nil.

### Save Instance

```lua theme={null}
saveinstance(ToSave: Instance) : InstanceBuffer <buffer>
```

<Info>
  saveinstance
</Info>

<Note>
  The **buffer** can be used on the `loadinstance`
</Note>

Saves the `ToSave` by converting it into a buffer.

### Load Instance

```lua theme={null}
loadinstance(InstanceBuffer: buffer) : LoadedInstance <Instance>
```

<Info>
  loadinstance
</Info>

<Warning>
  **Eco Executor** exclusive.
</Warning>

Loads the instance by converting `InstanceBuffer` into the instance.

### Lock Instance

```lua theme={null}
lockinstance(target: Instance) : () <void>
```

<Info>
  lockinstance
</Info>

<Warning>
  **Eco Executor** exclusive.
</Warning>

Locks the `instance.Parent` property, preventing it from being changed.

### Get Locked Instances

```lua theme={null}
getlockedinstances() : {LockedInstances} \<table\>
```

<Info>
  getlockedinstances
</Info>

<Warning>
  **Eco Executor** exclusive.
</Warning>

Returns a table containing locked instances.

### Restrict Instance

```lua theme={null}
restrictinstance(target: Instance) : () <void>
```

<Info>
  restrictinstance, rinstance
</Info>

<Warning>
  **Eco Executor** exclusive.
</Warning>

Prevents the instance from getting child or descendant added.

### Free Instance

```lua theme={null}
freeinstance(target: Instance) : () <void>
```

<Info>
  freeinstance
</Info>

<Warning>
  **Eco Executor** exclusive.
</Warning>

Un-restrict the restricted instance.

### Get Restricted Instances

```lua theme={null}
getrestrictedinstances() : {RestrictedInstances} <table>
```

<Info>
  getrestrictedinstances, getrestricts, getrestricted
</Info>

<Warning>
  **Eco Executor** exclusive.
</Warning>

Returns the table containing restricted instances.

### Parent Instance

```lua theme={null}
parentinstance(TargetInstance: Instance, NewParent: Instance) : ParentedInstance <Instance>
```

<Info>
  parentinstance
</Info>

<Warning>
  **Eco Executor** exclusive.
</Warning>

Sets the `TargetInstance.Parent` to a `NewParent`

### Get Properties

```lua theme={null}
getproperties(Obj: Instance) : {string} <table>
```

<Info>
  getproperties
</Info>

Returns the table containing the properties of the `Obj`.

### Get Hui

```lua theme={null}
gethui() : CoreGui <Instance>
```

<Info>
  gethui, get\_hidden\_ui, gethiddenui, get\_hui
</Info>

Returns a **CoreGui**.

### Is Scriptable

```lua theme={null}
isscriptable(obj: Instance, prop: string) : (scriptable) <boolean>
```

<Info>
  isscriptable, is\_scriptable
</Info>

Checks the property of the `obj `and then returns a boolean whether it's scriptable or not.

### Is Network Owner

```lua theme={null}
isnetworkowner(part: BasePart) : (UserNetworkOwner) <boolean>
```

<Info>
  isnetworkowner, is\_network\_owner
</Info>

Checks the `part` and then returns a boolean whether its networkship is set to the local player (user) or not.

## Protect Gui

```lua theme={null}
protect_gui(...: any) : () <void>
```

<Info>
  protect\_gui
</Info>

<Warning>
  Detectable (noticeable changes)
</Warning>

Protects the gui by randomizing the name and its descendants.
